public class NetworkTrafficServerConnector 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 |
|---|
NetworkTrafficServerConnector(Server server) |
NetworkTrafficServerConnector(Server server,
ConnectionFactory connectionFactory) |
NetworkTrafficServerConnector(Server server,
ConnectionFactory connectionFactory,
SslContextFactory sslContextFactory) |
NetworkTrafficServerConnector(Server server,
Executor executor,
Scheduler scheduler,
ByteBufferPool pool,
int acceptors,
int selectors,
ConnectionFactory... factories) |
NetworkTrafficServerConnector(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, doStart, getAcceptQueueSize, getLocalPort, getReuseAddress, getSelectorManager, getSelectorPriorityDelta, getSoLingerTime, getTransport, isInheritChannel, isOpen, open, setAcceptQueueSize, setInheritChannel, setReuseAddress, setSelectorPriorityDelta, setSoLingerTime, shutdowndoStop, getHost, getPort, isAccepting, setHost, setPort, toStringaddConnectionFactory, clearConnectionFactories, getAcceptorPriorityDelta, getAcceptors, getByteBufferPool, getConnectedEndPoints, getConnectionFactories, getConnectionFactory, getConnectionFactory, getDefaultConnectionFactory, getDefaultProtocol, getExecutor, getIdleTimeout, getName, getProtocols, getScheduler, getServer, interruptAcceptors, join, join, onEndPointClosed, onEndPointOpened, removeConnectionFactory, setAcceptorPriorityDelta, setConnectionFactories, setDefaultProtocol, setIdleTimeout, setNameaddBean, addBean, addBean, addEventListener, addManaged, 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 NetworkTrafficServerConnector(Server server)
public NetworkTrafficServerConnector(Server server, ConnectionFactory connectionFactory, SslContextFactory sslContextFactory)
public NetworkTrafficServerConnector(Server server, ConnectionFactory connectionFactory)
public NetworkTrafficServerConnector(Server server, Executor executor, Scheduler scheduler, ByteBufferPool pool, int acceptors, int selectors, ConnectionFactory... factories)
public NetworkTrafficServerConnector(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-2015 Webtide. All Rights Reserved.