public class QueryEvents
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
QueryEvents.Listener |
Modifier and Type | Field and Description |
---|---|
static QueryEvents |
instance |
Constructor and Description |
---|
QueryEvents() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasListeners() |
int |
listenerCount() |
void |
notifyBatchFailure(java.util.List<QueryHandler.Prepared> prepared,
BatchStatement.Type batchType,
java.util.List<java.lang.Object> queryOrIdList,
java.util.List<java.util.List<java.nio.ByteBuffer>> values,
QueryOptions options,
QueryState state,
java.lang.Exception cause) |
void |
notifyBatchSuccess(BatchStatement.Type batchType,
java.util.List<? extends CQLStatement> statements,
java.util.List<java.lang.String> queries,
java.util.List<java.util.List<java.nio.ByteBuffer>> values,
QueryOptions options,
QueryState state,
long queryTime,
Message.Response response) |
void |
notifyExecuteFailure(QueryHandler.Prepared prepared,
QueryOptions options,
QueryState state,
java.lang.Exception cause) |
void |
notifyExecuteSuccess(CQLStatement statement,
java.lang.String query,
QueryOptions options,
QueryState state,
long queryTime,
Message.Response response) |
void |
notifyPrepareFailure(CQLStatement statement,
java.lang.String query,
QueryState state,
java.lang.Exception cause) |
void |
notifyPrepareSuccess(java.util.function.Supplier<QueryHandler.Prepared> preparedProvider,
java.lang.String query,
QueryState state,
long queryTime,
ResultMessage.Prepared response) |
void |
notifyQueryFailure(CQLStatement statement,
java.lang.String query,
QueryOptions options,
QueryState state,
java.lang.Exception cause) |
void |
notifyQuerySuccess(CQLStatement statement,
java.lang.String query,
QueryOptions options,
QueryState state,
long queryTime,
Message.Response response) |
void |
registerListener(QueryEvents.Listener listener) |
void |
unregisterListener(QueryEvents.Listener listener) |
public static final QueryEvents instance
public int listenerCount()
public void registerListener(QueryEvents.Listener listener)
public void unregisterListener(QueryEvents.Listener listener)
public void notifyQuerySuccess(CQLStatement statement, java.lang.String query, QueryOptions options, QueryState state, long queryTime, Message.Response response)
public void notifyQueryFailure(CQLStatement statement, java.lang.String query, QueryOptions options, QueryState state, java.lang.Exception cause)
public void notifyExecuteSuccess(CQLStatement statement, java.lang.String query, QueryOptions options, QueryState state, long queryTime, Message.Response response)
public void notifyExecuteFailure(QueryHandler.Prepared prepared, QueryOptions options, QueryState state, java.lang.Exception cause)
public void notifyBatchSuccess(BatchStatement.Type batchType, java.util.List<? extends CQLStatement> statements, java.util.List<java.lang.String> queries, java.util.List<java.util.List<java.nio.ByteBuffer>> values, QueryOptions options, QueryState state, long queryTime, Message.Response response)
public void notifyBatchFailure(java.util.List<QueryHandler.Prepared> prepared, BatchStatement.Type batchType, java.util.List<java.lang.Object> queryOrIdList, java.util.List<java.util.List<java.nio.ByteBuffer>> values, QueryOptions options, QueryState state, java.lang.Exception cause)
public void notifyPrepareSuccess(java.util.function.Supplier<QueryHandler.Prepared> preparedProvider, java.lang.String query, QueryState state, long queryTime, ResultMessage.Prepared response)
public void notifyPrepareFailure(@Nullable CQLStatement statement, java.lang.String query, QueryState state, java.lang.Exception cause)
public boolean hasListeners()
Copyright © 2009- The Apache Software Foundation