Package org.eclipse.jetty.client
Class MultiplexConnectionPool
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:
Closeable
,AutoCloseable
,ConnectionPool
,Container
,Destroyable
,Dumpable
,Dumpable.DumpableContainer
,LifeCycle
,Sweeper.Sweepable
- Direct Known Subclasses:
RandomConnectionPool
,RoundRobinConnectionPool
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.client.ConnectionPool
ConnectionPool.Factory, ConnectionPool.MaxUsable, ConnectionPool.Multiplexable
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.Listener
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMultiplexConnectionPool
(HttpDestination destination, int maxConnections, boolean cache, Callback requester, int maxMultiplex) MultiplexConnectionPool
(HttpDestination destination, int maxConnections, Callback requester, int maxMultiplex) MultiplexConnectionPool
(HttpDestination destination, Pool.StrategyType strategy, int maxConnections, boolean cache, Callback requester, int maxMultiplex) MultiplexConnectionPool
(HttpDestination destination, Pool<Connection> pool, Callback requester, int maxMultiplex) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionint
int
void
setMaxMultiplex
(int maxMultiplex) void
setMaxUsageCount
(int maxUsageCount) Methods inherited from class org.eclipse.jetty.client.AbstractConnectionPool
accept, acquire, acquired, activate, close, deactivate, doStop, dump, getActiveConnectionCount, getConnectionCount, getIdleConnectionCount, getMaxConnectionCount, getMaxDuration, getPendingConnectionCount, idle, isActive, isClosed, isEmpty, isMaximizeConnections, onCreated, preCreateConnections, proceed, release, released, remove, remove, removed, setMaxDuration, setMaximizeConnections, sweep, toString, tryCreate
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeans
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.component.Container
getCachedBeans, getEventListeners
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Constructor Details
-
MultiplexConnectionPool
public MultiplexConnectionPool(HttpDestination destination, int maxConnections, Callback requester, int maxMultiplex) -
MultiplexConnectionPool
public MultiplexConnectionPool(HttpDestination destination, int maxConnections, boolean cache, Callback requester, int maxMultiplex) -
MultiplexConnectionPool
public MultiplexConnectionPool(HttpDestination destination, Pool.StrategyType strategy, int maxConnections, boolean cache, Callback requester, int maxMultiplex) -
MultiplexConnectionPool
@Deprecated public MultiplexConnectionPool(HttpDestination destination, Pool<Connection> pool, Callback requester, int maxMultiplex) Deprecated.
-
-
Method Details
-
getMaxMultiplex
- Overrides:
getMaxMultiplex
in classAbstractConnectionPool
-
setMaxMultiplex
public void setMaxMultiplex(int maxMultiplex) - Overrides:
setMaxMultiplex
in classAbstractConnectionPool
-
getMaxUsageCount
@ManagedAttribute("The maximum amount of times a connection is used before it gets closed") public int getMaxUsageCount()- Overrides:
getMaxUsageCount
in classAbstractConnectionPool
-
setMaxUsageCount
public void setMaxUsageCount(int maxUsageCount) - Overrides:
setMaxUsageCount
in classAbstractConnectionPool
-