org.glassfish.grizzly
Class StandaloneProcessorSelector

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

public class StandaloneProcessorSelector
extends Object
implements ProcessorSelector

ProcessorSelector, which doesn't add any Processor to process occurred IOEvent. Connection I/O events should be processed explicitly by calling read/write/accept/connect methods. Setting StandaloneProcessorSelector has the same effect as setting StandaloneProcessor, though if StandaloneProcessorSelector is set - there is still possibility to overwrite processing logic by providing custom Processor.

Author:
Alexey Stashok

Field Summary
static StandaloneProcessorSelector INSTANCE
           
 
Constructor Summary
StandaloneProcessorSelector()
           
 
Method Summary
 Processor select(IOEvent ioEvent, Connection connection)
          Always return null, which means no Processor was found to process IOEvent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final StandaloneProcessorSelector INSTANCE
Constructor Detail

StandaloneProcessorSelector

public StandaloneProcessorSelector()
Method Detail

select

public Processor select(IOEvent ioEvent,
                        Connection connection)
Always return null, which means no Processor was found to process IOEvent.

Specified by:
select in interface ProcessorSelector
Parameters:
ioEvent - connection event to be processed
connection - where event occurred
Returns:
the Processor, which will process connection event.


Copyright © 2012 Oracle Corporation. All Rights Reserved.