public class NetworkTrafficSelectChannelConnector extends ServerConnector
A specialized version of ServerConnector that supports NetworkTrafficListeners.
NetworkTrafficListeners can be added and removed dynamically before and after this connector has
been started without causing ConcurrentModificationExceptions.
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.ListenerContainer.InheritedListener, Container.ListenerLOG| Constructor and Description |
|---|
NetworkTrafficSelectChannelConnector(Server server) |
NetworkTrafficSelectChannelConnector(Server server,
ConnectionFactory connectionFactory) |
NetworkTrafficSelectChannelConnector(Server server,
ConnectionFactory connectionFactory,
SslContextFactory sslContextFactory) |
NetworkTrafficSelectChannelConnector(Server server,
Executor executor,
Scheduler scheduler,
ByteBufferPool pool,
int acceptors,
int selectors,
ConnectionFactory... factories) |
NetworkTrafficSelectChannelConnector(Server server,
SslContextFactory sslContextFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNetworkTrafficListener(NetworkTrafficListener listener) |
protected SelectChannelEndPoint |
newEndPoint(SocketChannel channel,
SelectorManager.ManagedSelector selectSet,
SelectionKey key) |
void |
removeNetworkTrafficListener(NetworkTrafficListener listener) |
accept, close, configure, getAcceptQueueSize, getLocalPort, getReuseAddress, getSelectorManager, getSoLingerTime, getTransport, isInheritChannel, isOpen, open, setAcceptQueueSize, setInheritChannel, setReuseAddress, setSoLingerTime, shutdowndoStart, doStop, getHost, getPort, isAccepting, setHost, setPort, toStringaddConnectionFactory, clearConnectionFactories, getAcceptors, getByteBufferPool, getConnectedEndPoints, getConnectionFactories, getConnectionFactory, getConnectionFactory, getDefaultConnectionFactory, getDefaultProtocol, getExecutor, getIdleTimeout, getName, getProtocols, getScheduler, getServer, interruptAcceptors, join, join, onEndPointClosed, onEndPointOpened, removeConnectionFactory, setConnectionFactories, setDefaultProtocol, setIdleTimeout, setNameaddBean, addBean, addBean, addEventListener, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetByteBufferPool, getConnectedEndPoints, getConnectionFactories, getConnectionFactory, getConnectionFactory, getDefaultConnectionFactory, getExecutor, getIdleTimeout, getName, getProtocols, getScheduler, getServeraddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic NetworkTrafficSelectChannelConnector(Server server)
public NetworkTrafficSelectChannelConnector(Server server, ConnectionFactory connectionFactory, SslContextFactory sslContextFactory)
public NetworkTrafficSelectChannelConnector(Server server, ConnectionFactory connectionFactory)
public NetworkTrafficSelectChannelConnector(Server server, Executor executor, Scheduler scheduler, ByteBufferPool pool, int acceptors, int selectors, ConnectionFactory... factories)
public NetworkTrafficSelectChannelConnector(Server server, SslContextFactory sslContextFactory)
public void addNetworkTrafficListener(NetworkTrafficListener listener)
listener - the listener to addpublic void removeNetworkTrafficListener(NetworkTrafficListener listener)
listener - the listener to removeprotected SelectChannelEndPoint newEndPoint(SocketChannel channel, SelectorManager.ManagedSelector selectSet, SelectionKey key) throws IOException
newEndPoint in class ServerConnectorIOExceptionCopyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.