public class ReadResultPublisher extends Object implements Publisher<ReadResult>
Publisher for ReadResults.| Constructor and Description |
|---|
ReadResultPublisher(Statement<?> statement,
CqlSession session,
boolean failFast)
Creates a new
ReadResultPublisher without ExecutionListener and without
throughput regulation. |
ReadResultPublisher(Statement<?> statement,
CqlSession session,
boolean failFast,
ExecutionListener listener,
Semaphore maxConcurrentRequests,
com.datastax.oss.driver.shaded.guava.common.util.concurrent.RateLimiter rateLimiter)
Creates a new
ReadResultPublisher. |
| Modifier and Type | Method and Description |
|---|---|
void |
subscribe(Subscriber<? super ReadResult> subscriber) |
public ReadResultPublisher(@NonNull
Statement<?> statement,
@NonNull
CqlSession session,
boolean failFast)
ReadResultPublisher without ExecutionListener and without
throughput regulation.statement - The Statement to execute.session - The CqlSession to use.failFast - whether to fail-fast in case of error.public ReadResultPublisher(@NonNull
Statement<?> statement,
@NonNull
CqlSession session,
boolean failFast,
@Nullable
ExecutionListener listener,
@Nullable
Semaphore maxConcurrentRequests,
@Nullable
com.datastax.oss.driver.shaded.guava.common.util.concurrent.RateLimiter rateLimiter)
ReadResultPublisher.statement - The Statement to execute.session - The CqlSession to use.failFast - whether to fail-fast in case of error.listener - The ExecutionListener to use.maxConcurrentRequests - The Semaphore to use to regulate the amount of in-flight
requests.rateLimiter - The RateLimiter to use to regulate throughput.public void subscribe(Subscriber<? super ReadResult> subscriber)
subscribe in interface Publisher<ReadResult>Copyright © 2017–2021 DataStax. All rights reserved.