public class ConnectionPool extends Object implements Closeable, org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.thread.Sweeper.Sweepable
| Modifier and Type | Field and Description |
|---|---|
protected static org.eclipse.jetty.util.log.Logger |
LOG |
| Constructor and Description |
|---|
ConnectionPool(Destination destination,
int maxConnections,
org.eclipse.jetty.util.Promise<Connection> requester) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
acquire() |
protected void |
acquired(Connection connection) |
void |
close() |
String |
dump() |
void |
dump(Appendable out,
String indent) |
BlockingQueue<Connection> |
getActiveConnections() |
int |
getConnectionCount() |
BlockingQueue<Connection> |
getIdleConnections() |
protected boolean |
idle(Connection connection,
boolean idle) |
protected void |
idleCreated(Connection connection) |
boolean |
isActive(Connection connection) |
boolean |
isEmpty() |
boolean |
isIdle(Connection connection) |
boolean |
release(Connection connection) |
protected void |
released(Connection connection) |
boolean |
remove(Connection connection) |
boolean |
sweep() |
String |
toString() |
public ConnectionPool(Destination destination, int maxConnections, org.eclipse.jetty.util.Promise<Connection> requester)
public int getConnectionCount()
public BlockingQueue<Connection> getIdleConnections()
public BlockingQueue<Connection> getActiveConnections()
public Connection acquire()
protected void idleCreated(Connection connection)
protected void acquired(Connection connection)
public boolean release(Connection connection)
protected boolean idle(Connection connection, boolean idle)
protected void released(Connection connection)
public boolean remove(Connection connection)
public boolean isActive(Connection connection)
public boolean isIdle(Connection connection)
public boolean isEmpty()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic String dump()
dump in interface org.eclipse.jetty.util.component.Dumpablepublic void dump(Appendable out, String indent) throws IOException
dump in interface org.eclipse.jetty.util.component.DumpableIOExceptionpublic boolean sweep()
sweep in interface org.eclipse.jetty.util.thread.Sweeper.SweepableCopyright © 1995-2018 Webtide. All Rights Reserved.