java.lang.Object
org.neo4j.driver.internal.cursor.AbstractRecordStateResponseHandler
org.neo4j.driver.internal.cursor.RxResultCursorImpl
- All Implemented Interfaces:
DriverResponseHandler
,RxResultCursor
,org.neo4j.driver.internal.FailableCursor
,org.reactivestreams.Subscription
public class RxResultCursorImpl
extends AbstractRecordStateResponseHandler
implements RxResultCursor, DriverResponseHandler
-
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
(DriverBoltConnection boltConnection, Query query, RunSummary runSummary, Throwable runError, Consumer<org.neo4j.driver.internal.DatabaseBookmark> bookmarkConsumer, boolean closeOnSummary, Logging logging) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
consumed()
Discarding all unconsumed records and returning failure if there is any pull errors.void
installRecordConsumer
(BiConsumer<Record, Throwable> recordConsumer) boolean
isDone()
keys()
void
void
onDiscardSummary
(DiscardSummary summary) void
void
void
onPullSummary
(PullSummary summary) void
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.Methods inherited from class org.neo4j.driver.internal.cursor.AbstractRecordStateResponseHandler
generateGqlStatusObject, updateRecordState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.neo4j.driver.internal.adaptedbolt.DriverResponseHandler
onBeginSummary, onCommitSummary, onLogoffSummary, onLogonSummary, onResetSummary, onRollbackSummary, onRouteSummary, onRunSummary, onTelemetrySummary
-
Constructor Details
-
RxResultCursorImpl
public RxResultCursorImpl(DriverBoltConnection boltConnection, Query query, RunSummary runSummary, Throwable runError, Consumer<org.neo4j.driver.internal.DatabaseBookmark> bookmarkConsumer, boolean closeOnSummary, Logging logging)
-
-
Method Details
-
getRunError
- Specified by:
getRunError
in interfaceRxResultCursor
-
keys
- Specified by:
keys
in interfaceRxResultCursor
-
consumed
- Specified by:
consumed
in interfaceorg.neo4j.driver.internal.FailableCursor
-
isDone
public boolean isDone()- Specified by:
isDone
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
-
summaryAsync
- Specified by:
summaryAsync
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
-
onComplete
public void onComplete()- Specified by:
onComplete
in interfaceDriverResponseHandler
-
onError
- Specified by:
onError
in interfaceDriverResponseHandler
-
onIgnored
public void onIgnored()- Specified by:
onIgnored
in interfaceDriverResponseHandler
-
onRecord
- Specified by:
onRecord
in interfaceDriverResponseHandler
-
onPullSummary
- Specified by:
onPullSummary
in interfaceDriverResponseHandler
-
onDiscardSummary
- Specified by:
onDiscardSummary
in interfaceDriverResponseHandler
-
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
-