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 interface
QueryEvents.Listener
-
Field Summary
Fields Modifier and Type Field Description static QueryEvents
instance
-
Constructor Summary
Constructors Constructor Description QueryEvents()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
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()
-
-