-
Notifications
You must be signed in to change notification settings - Fork 155
Pulling in batches for async and blocking API with BOLT V4. #637
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
Changes from all commits
d100fca
47f709d
91e0bb4
da8e744
36eb748
9014d06
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,6 @@ | |
|
||
public interface FailableCursor | ||
{ | ||
CompletionStage<Throwable> consumeAsync(); | ||
CompletionStage<Throwable> failureAsync(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this still needed? At least from what I read, you using I found that the failable cursor is used as interface for the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The different of these two method: |
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,10 +164,10 @@ private static RuntimeException driverCloseException() | |
return new IllegalStateException( "This driver instance has already been closed" ); | ||
} | ||
|
||
public NetworkSession newSession( SessionConfig parameters ) | ||
public NetworkSession newSession( SessionConfig config ) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unrelated, but good catch 👍 |
||
{ | ||
assertOpen(); | ||
NetworkSession session = sessionFactory.newInstance( parameters ); | ||
NetworkSession session = sessionFactory.newInstance( config ); | ||
if ( closed.get() ) | ||
{ | ||
// session does not immediately acquire connection, it is fine to just throw | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe clarify that exhausting means exhausting the current batch, not the whole possible result set / size.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it will exhausting the whole result. It is equivalent to
Subscription#cancel
.We currently cannot discard N, we can only discard ALL.
The following code is equivalent to a driver user: