Class QuerySubscription<E>
java.lang.Object
org.infinispan.commons.reactive.AbstractAsyncPublisherHandler<Query<E>,E,QueryResult<E>,QueryResult<E>>
org.infinispan.commons.api.query.impl.QuerySubscription<E>
- All Implemented Interfaces:
io.reactivex.rxjava3.functions.Action
,io.reactivex.rxjava3.functions.LongConsumer
public class QuerySubscription<E>
extends AbstractAsyncPublisherHandler<Query<E>,E,QueryResult<E>,QueryResult<E>>
-
Field Summary
Fields inherited from class org.infinispan.commons.reactive.AbstractAsyncPublisherHandler
batchSize, log, supplier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected long
handleInitialResponse
(QueryResult<E> eQueryResult, Query<E> es) protected long
handleNextResponse
(QueryResult<E> eQueryResult, Query<E> es) protected void
sendCancel
(Query<E> es) protected CompletionStage
<QueryResult<E>> sendInitialCommand
(Query<E> es, int batchSize) protected CompletionStage
<QueryResult<E>> sendNextCommand
(Query<E> es, int batchSize) Methods inherited from class org.infinispan.commons.reactive.AbstractAsyncPublisherHandler
accept, checkCancelled, handleThrowableInResponse, onNext, run, startPublisher, targetComplete
-
Constructor Details
-
QuerySubscription
-
-
Method Details
-
sendCancel
- Specified by:
sendCancel
in classAbstractAsyncPublisherHandler<Query<E>,
E, QueryResult<E>, QueryResult<E>>
-
sendInitialCommand
- Specified by:
sendInitialCommand
in classAbstractAsyncPublisherHandler<Query<E>,
E, QueryResult<E>, QueryResult<E>>
-
sendNextCommand
- Specified by:
sendNextCommand
in classAbstractAsyncPublisherHandler<Query<E>,
E, QueryResult<E>, QueryResult<E>>
-
handleInitialResponse
- Specified by:
handleInitialResponse
in classAbstractAsyncPublisherHandler<Query<E>,
E, QueryResult<E>, QueryResult<E>>
-
handleNextResponse
- Specified by:
handleNextResponse
in classAbstractAsyncPublisherHandler<Query<E>,
E, QueryResult<E>, QueryResult<E>>
-