public abstract class AbstractIOStrategy extends Object implements IOStrategy
| Modifier and Type | Field and Description |
|---|---|
protected static IOEventProcessingHandler |
ENABLE_INTEREST_PROCESSING_HANDLER |
| Constructor and Description |
|---|
AbstractIOStrategy() |
| Modifier and Type | Method and Description |
|---|---|
ThreadPoolConfig |
createDefaultWorkerPoolConfig(Transport transport) |
boolean |
executeIoEvent(Connection connection,
IOEvent ioEvent)
The
SelectorRunner will invoke this
method to allow the strategy implementation to decide how the
IOEvent will be handled. |
protected static void |
fireIOEvent(Connection connection,
IOEvent ioEvent,
IOEventProcessingHandler ph,
Logger logger) |
protected static Executor |
getWorkerThreadPool(Connection c) |
protected static boolean |
isExecuteInWorkerThread(IOEvent ioEvent) |
protected static boolean |
isReadWrite(IOEvent ioEvent) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteIoEventprotected static final IOEventProcessingHandler ENABLE_INTEREST_PROCESSING_HANDLER
public ThreadPoolConfig createDefaultWorkerPoolConfig(Transport transport)
createDefaultWorkerPoolConfig in interface WorkerThreadPoolConfigProducerpublic final boolean executeIoEvent(Connection connection, IOEvent ioEvent) throws IOException
IOStrategySelectorRunner will invoke this
method to allow the strategy implementation to decide how the
IOEvent will be handled.executeIoEvent in interface IOStrategyconnection - the Connection upon which the provided
IOEvent occurred.ioEvent - the IOEvent that triggered execution of this
strategyIOException - if an error occurs processing the IOEvent.protected static boolean isReadWrite(IOEvent ioEvent)
protected static boolean isExecuteInWorkerThread(IOEvent ioEvent)
protected static Executor getWorkerThreadPool(Connection c)
protected static void fireIOEvent(Connection connection, IOEvent ioEvent, IOEventProcessingHandler ph, Logger logger)
Copyright © 2013 Oracle Corporation. All Rights Reserved.