NetworkConnectorAbstractConnector, AbstractNetworkConnector, LocalConnector, NetworkTrafficSelectChannelConnector, NetworkTrafficServerConnector, ServerConnector@ManagedObject("Connector Interface") public interface Connector extends LifeCycle, Container, Graceful
A Connector accept connections and data from remote peers,
and allows applications to send data to remote peers, by setting up
the machinery needed to handle such tasks.
Container.InheritedListener, Container.ListenerLifeCycle.Listener| Modifier and Type | Method | Description |
|---|---|---|
ByteBufferPool |
getByteBufferPool() |
|
java.util.Collection<EndPoint> |
getConnectedEndPoints() |
|
java.util.Collection<ConnectionFactory> |
getConnectionFactories() |
|
<T> T |
getConnectionFactory(java.lang.Class<T> factoryType) |
|
ConnectionFactory |
getConnectionFactory(java.lang.String nextProtocol) |
|
ConnectionFactory |
getDefaultConnectionFactory() |
|
java.util.concurrent.Executor |
getExecutor() |
|
long |
getIdleTimeout() |
|
java.lang.String |
getName() |
Get the connector name if set.
|
java.util.List<java.lang.String> |
getProtocols() |
|
Scheduler |
getScheduler() |
|
Server |
getServer() |
|
java.lang.Object |
getTransport() |
addBean, addBean, addEventListener, getBean, getBeans, getBeans, getContainedBeans, isManaged, manage, removeBean, removeEventListener, unmanageaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stopjava.util.concurrent.Executor getExecutor()
Executor used to submit tasksByteBufferPool getByteBufferPool()
ByteBufferPool to acquire buffers from and release buffers toConnectionFactory getConnectionFactory(java.lang.String nextProtocol)
nextProtocol - the next protocolConnectionFactory associated with the protocol name<T> T getConnectionFactory(java.lang.Class<T> factoryType)
ConnectionFactory getDefaultConnectionFactory()
ConnectionFactory associated with the default protocol namejava.util.Collection<ConnectionFactory> getConnectionFactories()
java.util.List<java.lang.String> getProtocols()
@ManagedAttribute("maximum time a connection can be idle before being closed (in ms)") long getIdleTimeout()
java.lang.Object getTransport()
java.util.Collection<EndPoint> getConnectedEndPoints()
java.lang.String getName()
A ContextHandler may be configured with
virtual hosts in the form "@connectorName" and will only serve
requests from the named connector.
Copyright © 1995–2018 Webtide. All rights reserved.