public class NetworkTrafficServerConnector extends ServerConnector
A specialized version of ServerConnector
that supports NetworkTrafficListener
s.
NetworkTrafficListener
s can be added and removed dynamically before and after this connector has
been started without causing ConcurrentModificationException
s.
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Container.InheritedListener, Container.Listener
LOG
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, shutdown
doStop, getHost, getPort, isAccepting, setHost, setPort, toString
addConnectionFactory, 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, setName
addBean, 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, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getByteBufferPool, getConnectedEndPoints, getConnectionFactories, getConnectionFactory, getConnectionFactory, getDefaultConnectionFactory, getExecutor, getIdleTimeout, getName, getProtocols, getScheduler, getServer
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
public 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 ServerConnector
IOException
Copyright © 1995-2015 Webtide. All Rights Reserved.