java.lang.Object
org.neo4j.driver.internal.cursor.AbstractRecordStateResponseHandler
org.neo4j.driver.internal.cursor.RxResultCursorImpl
- All Implemented Interfaces:
ResponseHandler,RxResultCursor,org.neo4j.driver.internal.FailableCursor,org.reactivestreams.Subscription
public class RxResultCursorImpl
extends AbstractRecordStateResponseHandler
implements RxResultCursor, ResponseHandler
-
Nested Class Summary
Nested classes/interfaces inherited from class org.neo4j.driver.internal.cursor.AbstractRecordStateResponseHandler
AbstractRecordStateResponseHandler.RecordState -
Field Summary
Fields inherited from class org.neo4j.driver.internal.cursor.AbstractRecordStateResponseHandler
recordState -
Constructor Summary
ConstructorsConstructorDescriptionRxResultCursorImpl(BoltConnection boltConnection, Query query, RunSummary runSummary, Throwable runError, Consumer<org.neo4j.driver.internal.DatabaseBookmark> bookmarkConsumer, Consumer<Throwable> throwableConsumer, boolean closeOnSummary, Supplier<Throwable> interruptSupplier, Logging logging) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()consumed()Discarding all unconsumed records and returning failure if there is any pull errors.voidinstallRecordConsumer(BiConsumer<Record, Throwable> recordConsumer) booleanisDone()keys()voidvoidonDiscardSummary(DiscardSummary summary) voidvoidvoidonPullSummary(PullSummary summary) voidPulling all unconsumed records into memory and returning failure if there is any pull errors.voidrequest(long n) rollback()Rolls back this instance by releasing connection with RESET.Methods inherited from class org.neo4j.driver.internal.cursor.AbstractRecordStateResponseHandler
generateGqlStatusObject, updateRecordStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.neo4j.driver.internal.bolt.api.ResponseHandler
onBeginSummary, onCommitSummary, onLogoffSummary, onLogonSummary, onResetSummary, onRollbackSummary, onRouteSummary, onRunSummary, onTelemetrySummary
-
Constructor Details
-
RxResultCursorImpl
public RxResultCursorImpl(BoltConnection boltConnection, Query query, RunSummary runSummary, Throwable runError, Consumer<org.neo4j.driver.internal.DatabaseBookmark> bookmarkConsumer, Consumer<Throwable> throwableConsumer, boolean closeOnSummary, Supplier<Throwable> interruptSupplier, Logging logging)
-
-
Method Details
-
getRunError
- Specified by:
getRunErrorin interfaceRxResultCursor
-
keys
- Specified by:
keysin interfaceRxResultCursor
-
consumed
- Specified by:
consumedin interfaceorg.neo4j.driver.internal.FailableCursor
-
isDone
public boolean isDone()- Specified by:
isDonein interfaceRxResultCursor
-
installRecordConsumer
- Specified by:
installRecordConsumerin interfaceRxResultCursor
-
request
public void request(long n) - Specified by:
requestin interfaceorg.reactivestreams.Subscription
-
cancel
public void cancel()- Specified by:
cancelin interfaceorg.reactivestreams.Subscription
-
summaryAsync
- Specified by:
summaryAsyncin interfaceRxResultCursor
-
rollback
Description copied from interface:RxResultCursorRolls back this instance by releasing connection with RESET.This must never be called on a published instance.
- Specified by:
rollbackin interfaceRxResultCursor- Returns:
- reset completion stage
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceResponseHandler
-
onError
- Specified by:
onErrorin interfaceResponseHandler
-
onIgnored
public void onIgnored()- Specified by:
onIgnoredin interfaceResponseHandler
-
onRecord
- Specified by:
onRecordin interfaceResponseHandler
-
onPullSummary
- Specified by:
onPullSummaryin interfaceResponseHandler
-
onDiscardSummary
- Specified by:
onDiscardSummaryin interfaceResponseHandler
-
discardAllFailureAsync
Description copied from interface:org.neo4j.driver.internal.FailableCursorDiscarding all unconsumed records and returning failure if there is any pull errors.- Specified by:
discardAllFailureAsyncin interfaceorg.neo4j.driver.internal.FailableCursor
-
pullAllFailureAsync
Description copied from interface:org.neo4j.driver.internal.FailableCursorPulling all unconsumed records into memory and returning failure if there is any pull errors.- Specified by:
pullAllFailureAsyncin interfaceorg.neo4j.driver.internal.FailableCursor
-