ef-labs / vertx-cassandra

Execute cassandra statements from a vert.x module
39 stars 19 forks source link

Allow async calls to receive an Executor #1

Open jtruelove opened 9 years ago

jtruelove commented 9 years ago

What are your thoughts on potentially adding to the CassandraSession interface more async calls that allow the user to pass in their own executor service. This way you could monitor things like outstanding futures awaiting response.

ie

along with void executeAsync(Statement statement, final FutureCallback callback); also have this void executeAsync(Statement statement, final FutureCallback callback, Executor executor);

along with void executeAsync(String query, final FutureCallback callback); also have this void executeAsync(String query, final FutureCallback callback, Executor executor);

Do you know if there are any plans for Datastax to have a real async impl using NIO vs the current futures approach?

adrianluisgonzalez commented 9 years ago

Sure makes sense. Are you using vert.x 2 or 3?

I'm not aware of any changes datastax have planned for their driver.

jtruelove commented 9 years ago

I'm using 2 right now, I'd probably go to 3 once it's out but I imagine that will be a while.

On Mon, Dec 15, 2014 at 3:33 PM, Adrian notifications@github.com wrote:

Sure makes sense. Are you using vert.x 2 or 3?

I'm not aware of any changes datastax have planned for their driver.

— Reply to this email directly or view it on GitHub https://github.com/englishtown/vertx-cassandra/issues/1#issuecomment-67087035 .