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.Protocols at the same time.

Author:
Alexey Stashok

Method Summary
 ReadController nextController()
          Return next aux.
 boolean supportsClient(SelectorHandler selectorHandler)
          Checks if given SelectorHandler is supported on client-side by RoundRobinSelectorHandler
 boolean supportsProtocol(Controller.Protocol protocol)
          Checks if protocol is supported by RoundRobinSelectorHandler
 
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
 
Methods inherited from interface com.sun.grizzly.util.Copyable
copyTo
 
Methods inherited from interface com.sun.grizzly.util.AttributeHolder
getAttribute, getAttributes, removeAttribute, setAttribute, setAttributes
 
Methods inherited from interface com.sun.grizzly.util.SupportStateHolder
getStateHolder
 
Methods inherited from interface com.sun.grizzly.tcp.PendingIOhandler
addPendingIO, addPendingKeyCancel
 

Method Detail

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.