org.glassfish.grizzly.asyncqueue
Class AsyncQueueProcessorSelector

java.lang.Object
  extended by org.glassfish.grizzly.asyncqueue.AsyncQueueProcessorSelector
All Implemented Interfaces:
ProcessorSelector

public class AsyncQueueProcessorSelector
extends Object
implements ProcessorSelector

The ProcessorSelector implementation, which is aware of Connection asynchronous read/write queues, and is responsible for adding corresponding Processor.

Author:
Alexey Stashok

Field Summary
protected  AsyncQueueEnabledTransport transport
           
 
Constructor Summary
AsyncQueueProcessorSelector(AsyncQueueEnabledTransport transport)
           
 
Method Summary
 Processor select(IOEvent ioEvent, Connection connection)
          Returns asynchronous queue Processor if required
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transport

protected AsyncQueueEnabledTransport transport
Constructor Detail

AsyncQueueProcessorSelector

public AsyncQueueProcessorSelector(AsyncQueueEnabledTransport transport)
Method Detail

select

public Processor select(IOEvent ioEvent,
                        Connection connection)
Returns asynchronous queue Processor if required

Specified by:
select in interface ProcessorSelector
Parameters:
ioEvent - connection event to be processed
connection, - where event occured
processorChain - Collection, where additional Processor(s) will be added
Returns:
the InjectionResult, which defines whether ProcessorSelector should stop the injection of a next Processors, or can continue.


Copyright © 2009 SUN Microsystems. All Rights Reserved.