Module org.neo4j.driver
Class AutoPullResponseHandler
java.lang.Object
org.neo4j.driver.internal.handlers.AbstractRecordStateResponseHandler
org.neo4j.driver.internal.handlers.pulln.BasicPullResponseHandler
org.neo4j.driver.internal.handlers.pulln.AutoPullResponseHandler
- All Implemented Interfaces:
PullAllResponseHandler
,PullResponseHandler
,ResponseHandler
,org.reactivestreams.Subscription
public class AutoPullResponseHandler
extends BasicPullResponseHandler
implements PullAllResponseHandler
Built on top of
BasicPullResponseHandler
to be able to pull in batches.
It is exposed as PullAllResponseHandler
as it can automatically pull when running out of records locally.-
Nested Class Summary
Nested classes/interfaces inherited from class org.neo4j.driver.internal.handlers.pulln.BasicPullResponseHandler
BasicPullResponseHandler.State
Nested classes/interfaces inherited from class org.neo4j.driver.internal.handlers.AbstractRecordStateResponseHandler
AbstractRecordStateResponseHandler.RecordState
-
Field Summary
Fields inherited from class org.neo4j.driver.internal.handlers.pulln.BasicPullResponseHandler
connection, metadataExtractor, runResponseHandler
Fields inherited from class org.neo4j.driver.internal.handlers.AbstractRecordStateResponseHandler
recordState
-
Constructor Summary
ConstructorDescriptionAutoPullResponseHandler
(Query query, RunResponseHandler runResponseHandler, Connection connection, MetadataExtractor metadataExtractor, PullResponseCompletionListener completionListener, long fetchSize) -
Method Summary
Methods inherited from class org.neo4j.driver.internal.handlers.pulln.BasicPullResponseHandler
cancel, discardAll, installRecordConsumer, installSummaryConsumer, isDone, onFailure, onRecord, onSuccess, request, state, state, writePull
Methods inherited from class org.neo4j.driver.internal.handlers.AbstractRecordStateResponseHandler
generateGqlStatusObject
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.spi.ResponseHandler
canManageAutoRead, disableAutoReadManagement, onFailure, onRecord, onSuccess
-
Constructor Details
-
AutoPullResponseHandler
public AutoPullResponseHandler(Query query, RunResponseHandler runResponseHandler, Connection connection, MetadataExtractor metadataExtractor, PullResponseCompletionListener completionListener, long fetchSize)
-
-
Method Details
-
peekAsync
- Specified by:
peekAsync
in interfacePullAllResponseHandler
-
nextAsync
- Specified by:
nextAsync
in interfacePullAllResponseHandler
-
consumeAsync
- Specified by:
consumeAsync
in interfacePullAllResponseHandler
-
listAsync
- Specified by:
listAsync
in interfacePullAllResponseHandler
-
pullAllFailureAsync
- Specified by:
pullAllFailureAsync
in interfacePullAllResponseHandler
-
prePopulateRecords
public void prePopulateRecords()- Specified by:
prePopulateRecords
in interfacePullAllResponseHandler
-