org.glassfish.grizzly.strategies
Class AbstractIOStrategy

java.lang.Object
  extended by org.glassfish.grizzly.strategies.AbstractIOStrategy
All Implemented Interfaces:
IOStrategy, WorkerThreadPoolConfigProducer
Direct Known Subclasses:
LeaderFollowerNIOStrategy, SameThreadIOStrategy, WorkerThreadIOStrategy

public abstract class AbstractIOStrategy
extends java.lang.Object
implements IOStrategy

Author:
oleksiys

Field Summary
protected static IOEventProcessingHandler enableInterestProcessingHandler
           
 
Constructor Summary
AbstractIOStrategy()
           
 
Method Summary
 ThreadPoolConfig createDefaultWorkerPoolConfig(Transport transport)
           
protected static void fireIOEvent(Connection connection, IOEvent ioEvent, IOEventProcessingHandler ph, java.util.logging.Logger logger)
           
protected static java.util.concurrent.Executor getWorkerThreadPool(Connection c)
           
protected static boolean isExecuteInWorkerThread(IOEvent ioEvent)
           
protected static boolean isReadWrite(IOEvent ioEvent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.glassfish.grizzly.IOStrategy
executeIoEvent
 

Field Detail

enableInterestProcessingHandler

protected static final IOEventProcessingHandler enableInterestProcessingHandler
Constructor Detail

AbstractIOStrategy

public AbstractIOStrategy()
Method Detail

createDefaultWorkerPoolConfig

public ThreadPoolConfig createDefaultWorkerPoolConfig(Transport transport)
Specified by:
createDefaultWorkerPoolConfig in interface WorkerThreadPoolConfigProducer

isReadWrite

protected static boolean isReadWrite(IOEvent ioEvent)

isExecuteInWorkerThread

protected static boolean isExecuteInWorkerThread(IOEvent ioEvent)

getWorkerThreadPool

protected static java.util.concurrent.Executor getWorkerThreadPool(Connection c)

fireIOEvent

protected static void fireIOEvent(Connection connection,
                                  IOEvent ioEvent,
                                  IOEventProcessingHandler ph,
                                  java.util.logging.Logger logger)


Copyright © 2011 Oracle Corpration. All Rights Reserved.