java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.client.AbstractConnectionPool
org.eclipse.jetty.client.MultiplexConnectionPool
- All Implemented Interfaces:
ConnectionPool,org.eclipse.jetty.util.component.Container,org.eclipse.jetty.util.component.Destroyable,org.eclipse.jetty.util.component.Dumpable,org.eclipse.jetty.util.component.Dumpable.DumpableContainer,org.eclipse.jetty.util.component.LifeCycle,org.eclipse.jetty.util.thread.Sweeper.Sweepable
- Direct Known Subclasses:
RandomConnectionPool,RoundRobinConnectionPool
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.client.ConnectionPool
ConnectionPool.Factory, ConnectionPool.MaxMultiplexable, ConnectionPool.MaxUsableNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener -
Field Summary
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, STARTED, STARTING, STOPPED, STOPPINGFields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEY -
Constructor Summary
ConstructorsModifierConstructorDescriptionMultiplexConnectionPool(Destination destination, int maxConnections, int initialMaxMultiplex) protectedMultiplexConnectionPool(Destination destination, org.eclipse.jetty.util.Pool.Factory<Connection> poolFactory, int initialMaxMultiplex) -
Method Summary
Modifier and TypeMethodDescriptionintstatic ToIntFunction<Connection>newMaxMultiplexer(int defaultMaxMultiplex) Returns a function that computes the max multiplex value for a givenConnection, if possible, otherwise returns the givendefaultMaxMultiplexvalue.voidsetInitialMaxMultiplex(int initialMaxMultiplex) Methods inherited from class org.eclipse.jetty.client.AbstractConnectionPool
accept, acquire, acquired, activate, deactivate, doStart, doStop, dump, getActiveConnectionCount, getConnectionCount, getIdleConnectionCount, getMaxConnectionCount, getMaxDuration, getMaxUsage, getPendingConnectionCount, idle, isActive, isEmpty, isMaximizeConnections, onCreated, preCreateConnections, proceed, release, released, remove, removed, setMaxDuration, setMaximizeConnections, setMaxUsage, sweep, toString, tryCreateMethods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeansMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.Container
getCachedBeans, getEventListenersMethods inherited from interface org.eclipse.jetty.util.component.Dumpable
dump, dumpSelfMethods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Constructor Details
-
MultiplexConnectionPool
public MultiplexConnectionPool(Destination destination, int maxConnections, int initialMaxMultiplex) -
MultiplexConnectionPool
protected MultiplexConnectionPool(Destination destination, org.eclipse.jetty.util.Pool.Factory<Connection> poolFactory, int initialMaxMultiplex)
-
-
Method Details
-
newMaxMultiplexer
Returns a function that computes the max multiplex value for a given
Connection, if possible, otherwise returns the givendefaultMaxMultiplexvalue.- Parameters:
defaultMaxMultiplex- the default max multiplex value- Returns:
- a function that computes the max multiplex value for a connection
-
getInitialMaxMultiplex
@ManagedAttribute("The initial multiplexing factor of connections") public int getInitialMaxMultiplex()- Overrides:
getInitialMaxMultiplexin classAbstractConnectionPool
-
setInitialMaxMultiplex
public void setInitialMaxMultiplex(int initialMaxMultiplex) - Overrides:
setInitialMaxMultiplexin classAbstractConnectionPool
-