com.sun.grizzly.nio.transport
Class TCPNIOServerConnection.AcceptorEventProcessor

java.lang.Object
  extended by com.sun.grizzly.AbstractProcessor
      extended by com.sun.grizzly.nio.transport.TCPNIOServerConnection.AcceptorEventProcessor
All Implemented Interfaces:
Processor
Enclosing class:
TCPNIOServerConnection

protected class TCPNIOServerConnection.AcceptorEventProcessor
extends AbstractProcessor

EventProcessor, which will be notified, once OP_ACCEPT will be ready on ServerSockerChannel


Constructor Summary
protected TCPNIOServerConnection.AcceptorEventProcessor()
           
 
Method Summary
 boolean isInterested(IOEvent ioEvent)
          Is this Processor interested in processing the i/o event
 ProcessorResult process(Context context)
          Method will be called by framework, when async accept will be ready
 void setInterested(IOEvent ioEvent, boolean isInterested)
          Set the the i/o event, this Processor is interested in
 
Methods inherited from class com.sun.grizzly.AbstractProcessor
afterProcess, beforeProcess, context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCPNIOServerConnection.AcceptorEventProcessor

protected TCPNIOServerConnection.AcceptorEventProcessor()
Method Detail

process

public ProcessorResult process(Context context)
                        throws IOException
Method will be called by framework, when async accept will be ready

Parameters:
context - processing context
Returns:
the result of I/O event processing
Throws:
IOException

isInterested

public boolean isInterested(IOEvent ioEvent)
Description copied from interface: Processor
Is this Processor interested in processing the i/o event

Returns:
true, if this Processor is interested and execution process will start, false otherwise.

setInterested

public void setInterested(IOEvent ioEvent,
                          boolean isInterested)
Description copied from interface: Processor
Set the the i/o event, this Processor is interested in

Parameters:
ioEvent - IOEvent
isInterested - true, if Processor is interested in processing of the I/O event, or false otherwise.


Copyright © 2009 SUN Microsystems. All Rights Reserved.