Package org.apache.cassandra.cql3
Class QueryEvents
java.lang.Object
org.apache.cassandra.cql3.QueryEvents
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintvoidnotifyBatchFailure(List<QueryHandler.Prepared> prepared, BatchStatement.Type batchType, List<Object> queryOrIdList, List<List<ByteBuffer>> values, QueryOptions options, QueryState state, Exception cause) voidnotifyBatchSuccess(BatchStatement.Type batchType, List<? extends CQLStatement> statements, List<String> queries, List<List<ByteBuffer>> values, QueryOptions options, QueryState state, long queryTime, Message.Response response) voidnotifyExecuteFailure(QueryHandler.Prepared prepared, QueryOptions options, QueryState state, Exception cause) voidnotifyExecuteSuccess(CQLStatement statement, String query, QueryOptions options, QueryState state, long queryTime, Message.Response response) voidnotifyPrepareFailure(CQLStatement statement, String query, QueryState state, Exception cause) voidnotifyPrepareSuccess(Supplier<QueryHandler.Prepared> preparedProvider, String query, QueryState state, long queryTime, ResultMessage.Prepared response) voidnotifyQueryFailure(CQLStatement statement, String query, QueryOptions options, QueryState state, Exception cause) voidnotifyQuerySuccess(CQLStatement statement, String query, QueryOptions options, QueryState state, long queryTime, Message.Response response) voidregisterListener(QueryEvents.Listener listener) voidunregisterListener(QueryEvents.Listener listener)
-
Field Details
-
instance
-
-
Constructor Details
-
QueryEvents
public QueryEvents()
-
-
Method Details
-
listenerCount
public int listenerCount() -
registerListener
-
unregisterListener
-
notifyQuerySuccess
public void notifyQuerySuccess(CQLStatement statement, String query, QueryOptions options, QueryState state, long queryTime, Message.Response response) -
notifyQueryFailure
public void notifyQueryFailure(CQLStatement statement, String query, QueryOptions options, QueryState state, Exception cause) -
notifyExecuteSuccess
public void notifyExecuteSuccess(CQLStatement statement, String query, QueryOptions options, QueryState state, long queryTime, Message.Response response) -
notifyExecuteFailure
public void notifyExecuteFailure(QueryHandler.Prepared prepared, QueryOptions options, QueryState state, Exception cause) -
notifyBatchSuccess
public void notifyBatchSuccess(BatchStatement.Type batchType, List<? extends CQLStatement> statements, List<String> queries, List<List<ByteBuffer>> values, QueryOptions options, QueryState state, long queryTime, Message.Response response) -
notifyBatchFailure
public void notifyBatchFailure(List<QueryHandler.Prepared> prepared, BatchStatement.Type batchType, List<Object> queryOrIdList, List<List<ByteBuffer>> values, QueryOptions options, QueryState state, Exception cause) -
notifyPrepareSuccess
public void notifyPrepareSuccess(Supplier<QueryHandler.Prepared> preparedProvider, String query, QueryState state, long queryTime, ResultMessage.Prepared response) -
notifyPrepareFailure
public void notifyPrepareFailure(@Nullable CQLStatement statement, String query, QueryState state, Exception cause) -
hasListeners
public boolean hasListeners()
-