Package org.eclipse.jetty.client
Class LeakTrackingConnectionPool
- 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
-
- org.eclipse.jetty.client.LeakTrackingConnectionPool
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,ConnectionPool,Container,Destroyable,Dumpable,Dumpable.DumpableContainer,LifeCycle,Sweeper.Sweepable
public class LeakTrackingConnectionPool extends DuplexConnectionPool
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.client.ConnectionPool
ConnectionPool.Factory, 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
-
-
Constructor Summary
Constructors Constructor Description LeakTrackingConnectionPool(Destination destination, int maxConnections, Callback requester)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidacquired(Connection connection)voidclose()Closes this ConnectionPool.protected voidleaked(LeakDetector.LeakInfo leakInfo)protected voidreleased(Connection connection)-
Methods inherited from class org.eclipse.jetty.client.DuplexConnectionPool
getMaxUsageCount, setMaxUsageCount
-
Methods inherited from class org.eclipse.jetty.client.AbstractConnectionPool
acquire, acquire, activate, deactivate, doStop, dump, getActiveConnectionCount, getActiveConnections, getConnectionCount, getIdleConnectionCount, getIdleConnections, getMaxConnectionCount, getMaxDuration, getMaxMultiplex, getPendingConnectionCount, getPendingCount, idle, isActive, isClosed, isEmpty, isMaximizeConnections, onCreated, preCreateConnections, proceed, release, remove, remove, removed, setMaxDuration, setMaximizeConnections, setMaxMultiplex, sweep, toString, tryCreate
-
Methods inherited from class org.eclipse.jetty.util.component.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, updateBeans
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, 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.Dumpable.DumpableContainer
isDumpable
-
-
-
-
Constructor Detail
-
LeakTrackingConnectionPool
public LeakTrackingConnectionPool(Destination destination, int maxConnections, Callback requester)
-
-
Method Detail
-
close
public void close()
Description copied from interface:ConnectionPoolCloses this ConnectionPool.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceConnectionPool- Overrides:
closein classAbstractConnectionPool- See Also:
ConnectionPool.isClosed()
-
acquired
protected void acquired(Connection connection)
- Overrides:
acquiredin classAbstractConnectionPool
-
released
protected void released(Connection connection)
- Overrides:
releasedin classAbstractConnectionPool
-
leaked
protected void leaked(LeakDetector.LeakInfo leakInfo)
-
-