java.lang.Object
org.neo4j.driver.internal.cursor.RxResultCursorImpl
- All Implemented Interfaces:
RxResultCursor
,org.neo4j.driver.internal.FailableCursor
,org.reactivestreams.Subscription
-
Constructor Summary
ConstructorDescriptionRxResultCursorImpl
(Throwable runError, RunResponseHandler runHandler, PullResponseHandler pullHandler, Supplier<CompletionStage<Void>> connectionReleaseSupplier) RxResultCursorImpl
(RunResponseHandler runHandler, PullResponseHandler pullHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
Discarding all unconsumed records and returning failure if there is any pull errors.void
installRecordConsumer
(BiConsumer<Record, Throwable> recordConsumer) boolean
isDone()
keys()
Pulling all unconsumed records into memory and returning failure if there is any pull errors.void
request
(long n) rollback()
Rolls back this instance by releasing connection with RESET.
-
Constructor Details
-
RxResultCursorImpl
-
RxResultCursorImpl
public RxResultCursorImpl(Throwable runError, RunResponseHandler runHandler, PullResponseHandler pullHandler, Supplier<CompletionStage<Void>> connectionReleaseSupplier)
-
-
Method Details
-
keys
- Specified by:
keys
in interfaceRxResultCursor
-
installRecordConsumer
- Specified by:
installRecordConsumer
in interfaceRxResultCursor
-
request
public void request(long n) - Specified by:
request
in interfaceorg.reactivestreams.Subscription
-
cancel
public void cancel()- Specified by:
cancel
in interfaceorg.reactivestreams.Subscription
-
discardAllFailureAsync
Description copied from interface:org.neo4j.driver.internal.FailableCursor
Discarding all unconsumed records and returning failure if there is any pull errors.- Specified by:
discardAllFailureAsync
in interfaceorg.neo4j.driver.internal.FailableCursor
-
pullAllFailureAsync
Description copied from interface:org.neo4j.driver.internal.FailableCursor
Pulling all unconsumed records into memory and returning failure if there is any pull errors.- Specified by:
pullAllFailureAsync
in interfaceorg.neo4j.driver.internal.FailableCursor
-
summaryAsync
- Specified by:
summaryAsync
in interfaceRxResultCursor
-
isDone
public boolean isDone()- Specified by:
isDone
in interfaceRxResultCursor
-
getRunError
- Specified by:
getRunError
in interfaceRxResultCursor
-
rollback
Description copied from interface:RxResultCursor
Rolls back this instance by releasing connection with RESET.This must never be called on a published instance.
- Specified by:
rollback
in interfaceRxResultCursor
- Returns:
- reset completion stage
-
summaryStage
-