public interface ExecutionListener
| Modifier and Type | Method and Description |
|---|---|
default void |
onExecutionFailed(BulkExecutionException exception,
ExecutionContext context)
Called when a statement execution has failed.
|
default void |
onExecutionStarted(Statement<?> statement,
ExecutionContext context)
Called when a statement is about to be executed.
|
default void |
onExecutionSuccessful(Statement<?> statement,
ExecutionContext context)
Called when a statement has been successfully executed.
|
default void |
onReadRequestFailed(Statement<?> statement,
Throwable error,
ExecutionContext context)
Called when a read request has failed.
|
default void |
onReadRequestStarted(Statement<?> statement,
ExecutionContext context)
Called when a read request is about to be sent.
|
default void |
onReadRequestSuccessful(Statement<?> statement,
ExecutionContext context)
Called when a read request has been completed successfully.
|
default void |
onRowReceived(Row row,
ExecutionContext context)
Called when a row has been successfully received.
|
default void |
onWriteRequestFailed(Statement<?> statement,
Throwable error,
ExecutionContext context)
Called when a write request has failed.
|
default void |
onWriteRequestStarted(Statement<?> statement,
ExecutionContext context)
Called when a write request is about to be sent.
|
default void |
onWriteRequestSuccessful(Statement<?> statement,
ExecutionContext context)
Called when a write request has been completed successfully.
|
default void onExecutionStarted(Statement<?> statement, ExecutionContext context)
statement - the statement to execute.context - the global statement execution context.default void onWriteRequestStarted(Statement<?> statement, ExecutionContext context)
statement - the statement to execute.context - the local request execution context.default void onWriteRequestSuccessful(Statement<?> statement, ExecutionContext context)
statement - the statement to execute.context - the local request execution context.default void onWriteRequestFailed(Statement<?> statement, Throwable error, ExecutionContext context)
statement - the statement to execute.error - the request execution error.context - the local request execution context.default void onReadRequestStarted(Statement<?> statement, ExecutionContext context)
statement - the statement to execute.context - the local request execution context.default void onReadRequestSuccessful(Statement<?> statement, ExecutionContext context)
statement - the statement to execute.context - the local request execution context.default void onRowReceived(Row row, ExecutionContext context)
Note: this method is called when the row is effectively read and emitted to downstream subscribers, which might be later than the moment when it was made available by the driver.
row - the row.context - the local request execution context.default void onReadRequestFailed(Statement<?> statement, Throwable error, ExecutionContext context)
statement - the statement to execute.error - the request execution error.context - the local request execution context.default void onExecutionSuccessful(Statement<?> statement, ExecutionContext context)
statement - the executed statement.context - the global statement execution context.default void onExecutionFailed(BulkExecutionException exception, ExecutionContext context)
exception - the error encountered.context - the statement execution context.Copyright © 2017–2021 DataStax. All rights reserved.