Package org.apache.cassandra.transport
Class Dispatcher
java.lang.Object
org.apache.cassandra.transport.Dispatcher
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassIt is important to keep this class an instance ofDebuggableTask, either runnable or callable since this is the only way we can keep it not wrapped into a callable on SEPExecutor submission path.static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatch(io.netty.channel.Channel channel, Message.Request request, org.apache.cassandra.transport.Dispatcher.FlushItemConverter forFlusher, ClientResourceLimits.Overload backpressure) booleanChecks if the item in the head of the queue has spent more than allowed time in the queue.booleanisDone()static voidshutdown()
-
Constructor Details
-
Dispatcher
public Dispatcher(boolean useLegacyFlusher)
-
-
Method Details
-
dispatch
public void dispatch(io.netty.channel.Channel channel, Message.Request request, org.apache.cassandra.transport.Dispatcher.FlushItemConverter forFlusher, ClientResourceLimits.Overload backpressure) -
hasQueueCapacity
public boolean hasQueueCapacity()Checks if the item in the head of the queue has spent more than allowed time in the queue. -
isDone
public boolean isDone() -
shutdown
public static void shutdown()
-