@ManagedObject public abstract class AbstractConnectionFactory extends ContainerLifeCycle implements ConnectionFactory
Provides the common handling for ConnectionFactory implementations including:
Connection.addListener(Connection.Listener) for all
Connection.Listener instances found as beans on the Connector
and this ConnectionFactoryAbstractLifeCycle.AbstractLifeCycleListenerConnectionFactory.UpgradingContainer.InheritedListener, Container.ListenerLifeCycle.ListenerFAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING| Modifier | Constructor and Description |
|---|---|
protected |
AbstractConnectionFactory(String... protocols) |
protected |
AbstractConnectionFactory(String protocol) |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractConnection |
configure(AbstractConnection connection,
Connector connector,
EndPoint endPoint) |
static ConnectionFactory[] |
getFactories(SslContextFactory sslContextFactory,
ConnectionFactory... factories) |
int |
getInputBufferSize() |
String |
getProtocol() |
List<String> |
getProtocols() |
void |
setInputBufferSize(int size) |
String |
toString() |
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnewConnectionprotected AbstractConnectionFactory(String protocol)
protected AbstractConnectionFactory(String... protocols)
@ManagedAttribute(value="The protocol name", readonly=true) public String getProtocol()
getProtocol in interface ConnectionFactorypublic List<String> getProtocols()
getProtocols in interface ConnectionFactory@ManagedAttribute(value="The buffer size used to read from the network") public int getInputBufferSize()
public void setInputBufferSize(int size)
protected AbstractConnection configure(AbstractConnection connection, Connector connector, EndPoint endPoint)
public static ConnectionFactory[] getFactories(SslContextFactory sslContextFactory, ConnectionFactory... factories)
Copyright © 1995–2017 Webtide. All rights reserved.