Class DuplexConnectionPool
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.client.AbstractConnectionPool
org.eclipse.jetty.client.DuplexConnectionPool
- All Implemented Interfaces:
Closeable, AutoCloseable, ConnectionPool, Container, Destroyable, Dumpable, Dumpable.DumpableContainer, LifeCycle, Sweeper.Sweepable
- Direct Known Subclasses:
LeakTrackingConnectionPool, ValidatingConnectionPool
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface ConnectionPool
ConnectionPool.Factory, ConnectionPool.MultiplexableNested classes/interfaces inherited from interface Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface Dumpable
Dumpable.DumpableContainerNested classes/interfaces inherited from interface LifeCycle
LifeCycle.Listener -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDuplexConnectionPool(HttpDestination destination, int maxConnections, boolean cache, Callback requester) DuplexConnectionPool(HttpDestination destination, int maxConnections, Callback requester) DuplexConnectionPool(HttpDestination destination, Pool<Connection> pool, Callback requester) -
Method Summary
Methods inherited from class AbstractConnectionPool
acquire, acquire, acquired, activate, close, deactivate, doStop, dump, getActiveConnectionCount, getActiveConnections, getConnectionCount, getIdleConnectionCount, getIdleConnections, getMaxConnectionCount, getMaxDuration, getMaxMultiplex, getPendingConnectionCount, getPendingCount, idle, isActive, isClosed, isEmpty, isMaximizeConnections, onCreated, preCreateConnections, proceed, release, released, remove, remove, removed, setMaxDuration, setMaximizeConnections, setMaxMultiplex, sweep, toString, tryCreateMethods inherited from class ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, 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, updateBeansMethods inherited from class AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Dumpable.DumpableContainer
isDumpable
-
Constructor Details
-
DuplexConnectionPool
-
DuplexConnectionPool
public DuplexConnectionPool(HttpDestination destination, int maxConnections, boolean cache, Callback requester) -
DuplexConnectionPool
-
-
Method Details
-
getMaxUsageCount
@ManagedAttribute("The maximum amount of times a connection is used before it gets closed") public int getMaxUsageCount()- Overrides:
getMaxUsageCountin classAbstractConnectionPool
-
setMaxUsageCount
public void setMaxUsageCount(int maxUsageCount) - Overrides:
setMaxUsageCountin classAbstractConnectionPool
-