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 ConnectionFactory
AbstractLifeCycle.AbstractLifeCycleListener
ConnectionFactory.Upgrading
Container.InheritedListener, Container.Listener
LifeCycle.Listener
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, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
newConnection
protected AbstractConnectionFactory(String protocol)
protected AbstractConnectionFactory(String... protocols)
public String getProtocol()
getProtocol
in interface ConnectionFactory
public List<String> getProtocols()
getProtocols
in interface ConnectionFactory
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-2015 Webtide. All Rights Reserved.