com.sun.grizzly.http
Class SelectorThreadHandler

java.lang.Object
  extended by com.sun.grizzly.TCPSelectorHandler
      extended by com.sun.grizzly.http.SelectorThreadHandler
All Implemented Interfaces:
Handler, SelectorHandler, AttributeHolder, Copyable, SupportStateHolder<State>

public class SelectorThreadHandler
extends TCPSelectorHandler

SelectorHandler implementation SelectorThread passes to Controller. It is very similar to TCPSelectorHandler, however has some difference in preSelect() processing

Author:
Jeanfrancois Arcand, Alexey Stashok

Field Summary
 
Fields inherited from class com.sun.grizzly.TCPSelectorHandler
asyncQueueReader, asyncQueueWriter, attributes, connectorInstanceHandler, inet, instanceHandler, isShutDown, linger, logger, opToRegister, port, reuseAddress, role, selectionKeyHandler, selector, selectTimeout, serverSocket, serverSocketChannel, serverTimeout, socketTimeout, ssBackLog, stateHolder, tcpNoDelay, threadPool
 
Constructor Summary
SelectorThreadHandler()
           
SelectorThreadHandler(SelectorThread selectorThread)
           
 
Method Summary
 void configureChannel(SelectableChannel channel)
           
 void copyTo(Copyable copy)
          
 void setSelectorThread(SelectorThread selectorThread)
           
 
Methods inherited from class com.sun.grizzly.TCPSelectorHandler
acceptWithoutRegistration, acquireConnectorHandler, boolean2Role, closeChannel, connect, getAsyncQueueReader, getAsyncQueueWriter, getAttribute, getAttributes, getConnectorInstanceHandlerDelegate, getInet, getLinger, getLogger, getPort, getPortLowLevel, getPreferredSelectionKeyHandler, getProtocolChainInstanceHandler, getRole, getSelectionKeyHandler, getSelector, getSelectTimeout, getServerTimeout, getSocketTimeout, getSsBackLog, getStateHolder, getThreadPool, initOpRegistriesIfRequired, invokeAsyncQueueReader, invokeAsyncQueueWriter, invokeCallbackHandler, isOpen, isReuseAddress, isTcpNoDelay, keys, onAcceptInterest, onConnectInterest, onConnectOp, onReadInterest, onReadOp, onWriteInterest, onWriteOp, pause, pollContext, postSelect, preSelect, processPendingOperations, protocol, register, register, releaseConnectorHandler, removeAttribute, resume, select, setAttribute, setAttributes, setInet, setLinger, setLogger, setPort, setProtocolChainInstanceHandler, setReuseAddress, setRole, setSelectionKeyHandler, setSelector, setSelectTimeout, setServerTimeout, setSocketTimeout, setSsBackLog, setTcpNoDelay, setThreadPool, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectorThreadHandler

public SelectorThreadHandler()

SelectorThreadHandler

public SelectorThreadHandler(SelectorThread selectorThread)
Method Detail

copyTo

public void copyTo(Copyable copy)

Specified by:
copyTo in interface Copyable
Overrides:
copyTo in class TCPSelectorHandler

setSelectorThread

public void setSelectorThread(SelectorThread selectorThread)

configureChannel

public void configureChannel(SelectableChannel channel)
                      throws IOException
Specified by:
configureChannel in interface SelectorHandler
Overrides:
configureChannel in class TCPSelectorHandler
Throws:
IOException


Copyright © 2009 SUN Microsystems. All Rights Reserved.