Package org.apache.cassandra.cql3
Class QueryEvents
- java.lang.Object
-
- org.apache.cassandra.cql3.QueryEvents
-
public class QueryEvents extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceQueryEvents.Listener
-
Field Summary
Fields Modifier and Type Field Description static QueryEventsinstance
-
Constructor Summary
Constructors Constructor Description QueryEvents()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasListeners()intlistenerCount()voidnotifyBatchFailure(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)voidnotifyBatchSuccess(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)voidnotifyExecuteFailure(QueryHandler.Prepared prepared, QueryOptions options, QueryState state, java.lang.Exception cause)voidnotifyExecuteSuccess(CQLStatement statement, java.lang.String query, QueryOptions options, QueryState state, long queryTime, Message.Response response)voidnotifyPrepareFailure(CQLStatement statement, java.lang.String query, QueryState state, java.lang.Exception cause)voidnotifyPrepareSuccess(java.util.function.Supplier<QueryHandler.Prepared> preparedProvider, java.lang.String query, QueryState state, long queryTime, ResultMessage.Prepared response)voidnotifyQueryFailure(CQLStatement statement, java.lang.String query, QueryOptions options, QueryState state, java.lang.Exception cause)voidnotifyQuerySuccess(CQLStatement statement, java.lang.String query, QueryOptions options, QueryState state, long queryTime, Message.Response response)voidregisterListener(QueryEvents.Listener listener)voidunregisterListener(QueryEvents.Listener listener)
-
-
-
Field Detail
-
instance
public static final QueryEvents instance
-
-
Method Detail
-
listenerCount
public int listenerCount()
-
registerListener
public void registerListener(QueryEvents.Listener listener)
-
unregisterListener
public void unregisterListener(QueryEvents.Listener listener)
-
notifyQuerySuccess
public void notifyQuerySuccess(CQLStatement statement, java.lang.String query, QueryOptions options, QueryState state, long queryTime, Message.Response response)
-
notifyQueryFailure
public void notifyQueryFailure(CQLStatement statement, java.lang.String query, QueryOptions options, QueryState state, java.lang.Exception cause)
-
notifyExecuteSuccess
public void notifyExecuteSuccess(CQLStatement statement, java.lang.String query, QueryOptions options, QueryState state, long queryTime, Message.Response response)
-
notifyExecuteFailure
public void notifyExecuteFailure(QueryHandler.Prepared prepared, QueryOptions options, QueryState state, java.lang.Exception cause)
-
notifyBatchSuccess
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)
-
notifyBatchFailure
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)
-
notifyPrepareSuccess
public void notifyPrepareSuccess(java.util.function.Supplier<QueryHandler.Prepared> preparedProvider, java.lang.String query, QueryState state, long queryTime, ResultMessage.Prepared response)
-
notifyPrepareFailure
public void notifyPrepareFailure(@Nullable CQLStatement statement, java.lang.String query, QueryState state, java.lang.Exception cause)
-
hasListeners
public boolean hasListeners()
-
-