Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow async calls to receive an Executor #1

Open
jtruelove opened this issue Dec 11, 2014 · 2 comments
Open

Allow async calls to receive an Executor #1

jtruelove opened this issue Dec 11, 2014 · 2 comments

Comments

@jtruelove
Copy link

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
Copy link
Member

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
Copy link
Author

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 [email protected] 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
#1 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants