public final class OrderedHandlerExecutor extends Object implements IoHandlerExecutor
IoHandler
events of a session to be executed in order and on the same
thread. In your IoHandler
code you don't need to care about session level concurrency.Constructor and Description |
---|
OrderedHandlerExecutor(int workerThreadCount,
int queueSize)
Create an
OrderedHandlerExecutor with a given number of thread and a given queue size. |
public OrderedHandlerExecutor(int workerThreadCount, int queueSize)
OrderedHandlerExecutor
with a given number of thread and a given queue size.workerThreadCount
- the worker thread countqueueSize
- the size of the queue for each worker threadpublic void execute(Event event)
execute
in interface IoHandlerExecutor
event
- the event to executeCopyright © 2009–2013 Apache MINA Project. All rights reserved.