Package org.apache.cassandra.transport
Class Dispatcher
- java.lang.Object
-
- org.apache.cassandra.transport.Dispatcher
-
public class Dispatcher extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classDispatcher.RequestProcessorIt 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 classDispatcher.RequestTime
-
Constructor Summary
Constructors Constructor Description Dispatcher(boolean useLegacyFlusher)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispatch(io.netty.channel.Channel channel, Message.Request request, org.apache.cassandra.transport.Dispatcher.FlushItemConverter forFlusher, ClientResourceLimits.Overload backpressure)booleanhasQueueCapacity()Checks if the item in the head of the queue has spent more than allowed time in the queue.static voidshutdown()
-
-
-
Method Detail
-
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.
-
shutdown
public static void shutdown()
-
-