|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IOStrategy
strategy is responsible for making decision how
Runnable task will be run: in current thread, worker thread.
strategy can make any other processing decisions.
| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from interface org.glassfish.grizzly.strategies.WorkerThreadPoolConfigProducer |
|---|
createDefaultWorkerPoolConfig |
| Method Detail |
|---|
boolean executeIoEvent(Connection connection,
IOEvent ioEvent)
throws java.io.IOException
SelectorRunner 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
strategy
java.io.IOException - if an error occurs processing the IOEvent.
boolean executeIoEvent(Connection connection,
IOEvent ioEvent,
boolean isIoEventEnabled)
throws java.io.IOException
SelectorRunner 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 | |||||||||