@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 ConnectionFactory
AbstractLifeCycle.AbstractLifeCycleListener
ConnectionFactory.Upgrading
Container.InheritedListener, Container.Listener
LifeCycle.Listener
Modifier | Constructor and Description |
---|---|
protected |
AbstractConnectionFactory(java.lang.String... protocols) |
protected |
AbstractConnectionFactory(java.lang.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() |
java.lang.String |
getProtocol() |
java.util.List<java.lang.String> |
getProtocols() |
void |
setInputBufferSize(int size) |
java.lang.String |
toString() |
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, 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
dumpObjects, dumpSelf
protected AbstractConnectionFactory(java.lang.String protocol)
protected AbstractConnectionFactory(java.lang.String... protocols)
@ManagedAttribute(value="The protocol name", readonly=true) public java.lang.String getProtocol()
getProtocol
in interface ConnectionFactory
public java.util.List<java.lang.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 java.lang.String toString()
toString
in class AbstractLifeCycle
public static ConnectionFactory[] getFactories(SslContextFactory sslContextFactory, ConnectionFactory... factories)
Copyright © 1995–2023 Webtide. All rights reserved.