com.sun.grizzly.http
Class SelectorThreadHandler
java.lang.Object
com.sun.grizzly.TCPSelectorHandler
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
Fields inherited from class com.sun.grizzly.TCPSelectorHandler |
asyncQueueReader, asyncQueueWriter, attributes, connectorInstanceHandler, inet, instanceHandler, isClient, isShutDown, linger, logger, opToRegister, pipeline, port, reuseAddress, selectionKeyHandler, selector, selectTimeout, serverSocket, serverSocketChannel, serverTimeout, socketTimeout, ssBackLog, stateHolder, tcpNoDelay |
Methods inherited from class com.sun.grizzly.TCPSelectorHandler |
acceptWithoutRegistration, acquireConnectorHandler, closeChannel, connect, getAsyncQueueReader, getAsyncQueueWriter, getAttribute, getAttributes, getConnectorInstanceHandlerDelegate, getInet, getLinger, getLogger, getPort, getPortLowLevel, getPreferredSelectionKeyHandler, getProtocolChainInstanceHandler, getSelectionKeyHandler, getSelector, getSelectTimeout, getServerTimeout, getSocketTimeout, getSsBackLog, getStateHolder, initOpRegistriesIfRequired, invokeAsyncQueueReader, invokeAsyncQueueWriter, invokeCallbackHandler, isOpen, isReuseAddress, isTcpNoDelay, keys, onAcceptInterest, onConnectInterest, onConnectOp, onReadInterest, onReadOp, onWriteInterest, onWriteOp, pause, pipeline, pollContext, postSelect, preSelect, processPendingOperations, protocol, register, register, releaseConnectorHandler, removeAttribute, resume, select, setAttribute, setAttributes, setInet, setLinger, setLogger, setPipeline, setPort, setProtocolChainInstanceHandler, setReuseAddress, setSelectionKeyHandler, setSelector, setSelectTimeout, setServerTimeout, setSocketTimeout, setSsBackLog, setTcpNoDelay, shutdown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectorThreadHandler
public SelectorThreadHandler()
SelectorThreadHandler
public SelectorThreadHandler(SelectorThread selectorThread)
copyTo
public void copyTo(Copyable copy)
- Copies current object content to copy object
- Specified by:
copyTo
in interface Copyable
- Overrides:
copyTo
in class TCPSelectorHandler
- Parameters:
copy
- represents target object, where current object's content will be copied
setSelectorThread
public void setSelectorThread(SelectorThread selectorThread)
configureChannel
public void configureChannel(SelectableChannel channel)
throws IOException
- Description copied from class:
TCPSelectorHandler
- Configure the channel operations.
- Specified by:
configureChannel
in interface SelectorHandler
- Overrides:
configureChannel
in class TCPSelectorHandler
- Parameters:
channel
- SelectableChannel
to configure
- Throws:
IOException
- on possible configuration related error
Copyright © 2010 SUN Microsystems. All Rights Reserved.