public interface ContinuousReactiveSession extends Session
Session
that offers utility methods to issue queries using reactive-style programming
and continuous paging, combined together.
Methods in this interface all return ContinuousReactiveResultSet
instances. All
publishers support multiple subscriptions in a unicast fashion: each subscriber triggers an
independent request execution and gets its own copy of the results.
Also, note that the publishers may emit items to their subscribers on an internal driver IO
thread. Subscriber implementors are encouraged to abide by Reactive Streams
Specification rule 2.2 and avoid performing heavy computations or blocking calls inside
onNext
calls, as doing so could slow down
the driver and impact performance. Instead, they should asynchronously dispatch received signals
to their processing logic.
ReactiveRow
OSS_DRIVER_COORDINATES
Modifier and Type | Method and Description |
---|---|
default ContinuousReactiveResultSet |
executeContinuouslyReactive(Statement<?> statement)
Returns a
Publisher that, once subscribed to, executes the given query continuously and
emits all the results. |
default ContinuousReactiveResultSet |
executeContinuouslyReactive(String query)
Returns a
Publisher that, once subscribed to, executes the given query continuously and
emits all the results. |
checkSchemaAgreement, checkSchemaAgreementAsync, execute, getContext, getKeyspace, getMetadata, getMetrics, getName, isSchemaMetadataEnabled, refreshSchema, refreshSchemaAsync, setSchemaMetadataEnabled
close, closeAsync, closeFuture, forceCloseAsync, isClosed
@NonNull default ContinuousReactiveResultSet executeContinuouslyReactive(@NonNull String query)
Publisher
that, once subscribed to, executes the given query continuously and
emits all the results.
See ContinuousSession
for more explanations about continuous paging.
This feature is only available with Datastax Enterprise. Executing continuous queries against an Apache Cassandra® cluster will result in a runtime error.
query
- the query to execute.Publisher
that will publish the returned results.@NonNull default ContinuousReactiveResultSet executeContinuouslyReactive(@NonNull Statement<?> statement)
Publisher
that, once subscribed to, executes the given query continuously and
emits all the results.
See ContinuousSession
for more explanations about continuous paging.
This feature is only available with Datastax Enterprise. Executing continuous queries against an Apache Cassandra® cluster will result in a runtime error.
statement
- the statement to execute.Publisher
that will publish the returned results.Copyright © 2017–2020. All rights reserved.