Package org.eclipse.jetty.client
Class LeakTrackingConnectionPool
- java.lang.Object
-
- 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
,Dumpable
,Sweeper.Sweepable
public class LeakTrackingConnectionPool extends DuplexConnectionPool
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.client.ConnectionPool
ConnectionPool.Factory, ConnectionPool.Multiplexable
-
-
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 void
acquired(Connection connection)
void
close()
Closes this ConnectionPool.protected void
leaked(LeakDetector.LeakInfo leakInfo)
protected void
released(Connection connection)
-
Methods inherited from class org.eclipse.jetty.client.DuplexConnectionPool
activate, deactivate, dump, dump, getActiveConnectionCount, getActiveConnections, getIdleConnectionCount, getIdleConnections, isActive, lock, onCreated, release, remove, remove, sweep, toString, unlock
-
Methods inherited from class org.eclipse.jetty.client.AbstractConnectionPool
acquire, active, close, dump, getConnectionCount, getMaxConnectionCount, getPendingCount, idle, isClosed, isEmpty, proceed, removed, tryCreate
-
-
-
-
Constructor Detail
-
LeakTrackingConnectionPool
public LeakTrackingConnectionPool(Destination destination, int maxConnections, Callback requester)
-
-
Method Detail
-
close
public void close()
Description copied from interface:ConnectionPool
Closes this ConnectionPool.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceConnectionPool
- Overrides:
close
in classDuplexConnectionPool
- See Also:
ConnectionPool.isClosed()
-
acquired
protected void acquired(Connection connection)
- Overrides:
acquired
in classAbstractConnectionPool
-
released
protected void released(Connection connection)
- Overrides:
released
in classAbstractConnectionPool
-
leaked
protected void leaked(LeakDetector.LeakInfo leakInfo)
-
-