public class MultiplexConnectionPool extends AbstractConnectionPool implements Sweeper.Sweepable
| Constructor and Description |
|---|
MultiplexConnectionPool(HttpDestination destination,
int maxConnections,
Callback requester,
int maxMultiplex) |
| Modifier and Type | Method and Description |
|---|---|
protected Connection |
activate() |
void |
close() |
void |
dump(Appendable out,
String indent) |
int |
getMaxMultiplex() |
boolean |
isActive(Connection connection) |
protected void |
lock() |
protected void |
onCreated(Connection connection) |
boolean |
release(Connection connection) |
boolean |
remove(Connection connection) |
protected boolean |
remove(Connection connection,
boolean force) |
void |
setMaxMultiplex(int maxMultiplex) |
boolean |
sweep() |
String |
toString() |
protected void |
unlock() |
acquire, acquired, active, close, dump, getConnectionCount, getMaxConnectionCount, idle, isClosed, isEmpty, proceed, released, removedpublic MultiplexConnectionPool(HttpDestination destination, int maxConnections, Callback requester, int maxMultiplex)
protected void lock()
protected void unlock()
public int getMaxMultiplex()
public void setMaxMultiplex(int maxMultiplex)
public boolean isActive(Connection connection)
isActive in interface ConnectionPoolprotected void onCreated(Connection connection)
onCreated in class AbstractConnectionPoolprotected Connection activate()
activate in class AbstractConnectionPoolpublic boolean release(Connection connection)
release in interface ConnectionPoolpublic boolean remove(Connection connection)
remove in interface ConnectionPoolprotected boolean remove(Connection connection, boolean force)
public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface ConnectionPoolclose in class AbstractConnectionPoolpublic void dump(Appendable out, String indent) throws IOException
dump in interface DumpableIOExceptionpublic boolean sweep()
sweep in interface Sweeper.SweepableCopyright © 1995–2017 Webtide. All rights reserved.