public interface RowPublisher extends org.reactivestreams.Publisher<Row>
Publisher
giving access to the rows.
When this publisher signals that it is complete clients can safely assume
that a database is ready to accept new queries. If subscription is
cancelled, however, clients have to wait for Connection.watchForIdle
future to complete before issuing another query.
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletionStage<RowMetadata> |
getMetadata()
A meta data of columns of this result set
|
java.util.concurrent.CompletionStage<java.lang.Long> |
getRowsAffected()
A number of rows that were affected by the statement.
|
java.util.concurrent.CompletionStage<? extends java.util.List<Warning>> |
getWarnings()
A sequence of warnings that were emitted during processing the statement.
|
java.util.concurrent.CompletionStage<java.lang.Long> getRowsAffected()
Clients can safely assume that a database is ready to accept new queries after this future completes.
Note that resulting CompletionStage
may not complete until a rows
Publisher is complete. To complete this CompletionStage
, clients must either read the rows stream
until it is complete or cancel the subscription.
java.util.concurrent.CompletionStage<? extends java.util.List<Warning>> getWarnings()
Clients can safely assume that a database is ready to accept new queries after this future completes.
Note that resulting CompletionStage
may not complete until a rows
Publisher is complete. To complete this CompletionStage
, clients must either read the rows stream
until it is complete or cancel the subscription.
java.util.concurrent.CompletionStage<RowMetadata> getMetadata()