P - the page type, one of AsyncResultSet or ContinuousAsyncResultSet.R - the result type (WriteResult or ReadResult).public abstract class ResultSubscription<R extends Result,P extends AsyncPagingIterable<Row,P>> extends Object implements Subscription
Statement with the provided
CqlSession and emits all the rows returned by the query to its Subscriber.| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
doOnError(Throwable error) |
void |
request(long n) |
void |
start(Callable<CompletionStage<? extends P>> initial)
Must be called immediately after
Subscriber.onSubscribe(Subscription). |
public void start(Callable<CompletionStage<? extends P>> initial)
Subscriber.onSubscribe(Subscription).initial - the future that, once complete, will produce the first page.public void request(long n)
request in interface Subscriptionpublic void cancel()
cancel in interface Subscriptionpublic void doOnError(Throwable error)
Copyright © 2017–2021 DataStax. All rights reserved.