com.sun.grizzly
Interface ComplexSelectorHandler
- All Superinterfaces:
- AttributeHolder, Copyable, Handler, PendingIOhandler, SelectorHandler, SupportStateHolder<State>
- All Known Implementing Classes:
- RoundRobinSelectorHandler
public interface ComplexSelectorHandler
- extends SelectorHandler
A ComplexSelectorHandler handles all java.nio.channels.Selector operations
similar way SelectorHandler
does.
But can work with several Controller.Protocol
s at the same time.
- Author:
- Alexey Stashok
Methods inherited from interface com.sun.grizzly.SelectorHandler |
acceptWithoutRegistration, acquireConnectorHandler, closeChannel, configureChannel, getAsyncQueueReader, getAsyncQueueWriter, getPreferredSelectionKeyHandler, getProtocolChainInstanceHandler, getSelectionKeyHandler, getSelector, getThreadPool, isOpen, keyFor, keys, onAcceptInterest, onConnectInterest, onReadInterest, onWriteInterest, pause, postSelect, preSelect, protocol, register, register, register, releaseConnectorHandler, resume, select, setProtocolChainInstanceHandler, setSelectionKeyHandler, setSelector, setThreadPool, shutdown |
supportsProtocol
boolean supportsProtocol(Controller.Protocol protocol)
- Checks if protocol is supported by RoundRobinSelectorHandler
- Parameters:
protocol
- Network protocol name
- Returns:
- true if protocol is supported, false otherwise
supportsClient
boolean supportsClient(SelectorHandler selectorHandler)
- Checks if given
SelectorHandler
is supported on client-side by RoundRobinSelectorHandler
- Parameters:
selectorHandler
- SelectorHandler
- Returns:
- true if
selectorHandler
is supported, false otherwise
nextController
ReadController nextController()
- Return next aux. ReadController to process an accepted connection
- Returns:
- next aux.
ReadController
Copyright © 2012 Oracle Corporation. All Rights Reserved.