|
||||||||||
| 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.LeaderFollowerNIOStrategy
public final class LeaderFollowerNIOStrategy
IOStrategy, which executes Processors in a current threads, and
resumes selector thread logic in separate thread.
| Field Summary |
|---|
| Fields inherited from class org.glassfish.grizzly.strategies.AbstractIOStrategy |
|---|
enableInterestProcessingHandler |
| 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. |
static LeaderFollowerNIOStrategy |
getInstance()
|
| Methods inherited from class org.glassfish.grizzly.strategies.AbstractIOStrategy |
|---|
createDefaultWorkerPoolConfig, 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 LeaderFollowerNIOStrategy 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||