|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.strategies.AbstractIOStrategy
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy
public final class WorkerThreadIOStrategy
IOStrategy, which executes Processors in worker thread.
| Field Summary |
|---|
| Fields inherited from class org.glassfish.grizzly.strategies.AbstractIOStrategy |
|---|
ENABLE_INTEREST_PROCESSING_HANDLER |
| Method Summary | |
|---|---|
boolean |
executeIoEvent(Connection connection,
IOEvent ioEvent,
boolean isIoEventEnabled)
The SelectorRunner will invoke this
method to allow the strategy implementation to decide how the
IOEvent will be handled. |
static WorkerThreadIOStrategy |
getInstance()
|
| Methods inherited from class org.glassfish.grizzly.strategies.AbstractIOStrategy |
|---|
createDefaultWorkerPoolConfig, executeIoEvent, fireIOEvent, getWorkerThreadPool, isExecuteInWorkerThread, isReadWrite |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static WorkerThreadIOStrategy getInstance()
public boolean executeIoEvent(Connection connection,
IOEvent ioEvent,
boolean isIoEventEnabled)
throws java.io.IOException
IOStrategySelectorRunner will invoke this
method to allow the strategy implementation to decide how the
IOEvent will be handled.
connection - the Connection upon which the provided
IOEvent occurred.ioEvent - the IOEvent that triggered execution of this
strategyisIoEventEnabled - true if IOEvent is still enabled on the
Connection, or false if IOEvent was preliminary disabled
or IOEvent is being simulated.
java.io.IOException - if an error occurs processing the IOEvent.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||