|
||||||||||
| 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.SameThreadIOStrategy
public final class SameThreadIOStrategy
IOStrategy, which executes Processors in a current thread.
| Field Summary |
|---|
| Fields inherited from class org.glassfish.grizzly.strategies.AbstractIOStrategy |
|---|
enableInterestProcessingHandler |
| Method Summary | |
|---|---|
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. |
static SameThreadIOStrategy |
getInstance()
|
| Methods inherited from class org.glassfish.grizzly.strategies.AbstractIOStrategy |
|---|
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 SameThreadIOStrategy getInstance()
public boolean executeIoEvent(Connection connection,
IOEvent ioEvent)
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
strategy
java.io.IOException - if an error occurs processing the IOEvent.public ThreadPoolConfig createDefaultWorkerPoolConfig(Transport transport)
createDefaultWorkerPoolConfig in interface WorkerThreadPoolConfigProducercreateDefaultWorkerPoolConfig in class AbstractIOStrategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||