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, removed
public 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 ConnectionPool
protected void onCreated(Connection connection)
onCreated
in class AbstractConnectionPool
protected Connection activate()
activate
in class AbstractConnectionPool
public boolean release(Connection connection)
release
in interface ConnectionPool
public boolean remove(Connection connection)
remove
in interface ConnectionPool
protected boolean remove(Connection connection, boolean force)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface ConnectionPool
close
in class AbstractConnectionPool
public void dump(Appendable out, String indent) throws IOException
dump
in interface Dumpable
IOException
public boolean sweep()
sweep
in interface Sweeper.Sweepable
Copyright © 1995–2017 Webtide. All rights reserved.