java.io.Closeable, java.lang.AutoCloseable, ConnectionPool, ConnectionPool.Multiplexable@ManagedObject public class RoundRobinConnectionPool extends AbstractConnectionPool implements ConnectionPool.Multiplexable
ConnectionPool.Factory, ConnectionPool.Multiplexable| Constructor | Description |
|---|---|
RoundRobinConnectionPool(Destination destination,
int maxConnections,
org.eclipse.jetty.util.Callback requester) |
|
RoundRobinConnectionPool(Destination destination,
int maxConnections,
org.eclipse.jetty.util.Callback requester,
int maxMultiplex) |
| Modifier and Type | Method | Description |
|---|---|---|
protected Connection |
activate() |
|
void |
dump(java.lang.Appendable out,
java.lang.String indent) |
|
int |
getMaxMultiplex() |
|
boolean |
isActive(Connection connection) |
|
protected void |
onCreated(Connection connection) |
|
boolean |
release(Connection connection) |
Returns the given connection, previously obtained via
ConnectionPool.acquire(),
back to this ConnectionPool. |
boolean |
remove(Connection connection) |
Removes the given connection from this ConnectionPool.
|
void |
setMaxMultiplex(int maxMultiplex) |
|
java.lang.String |
toString() |
acquire, acquired, active, close, close, dump, getConnectionCount, getMaxConnectionCount, getPendingCount, idle, isClosed, isEmpty, proceed, released, removed, tryCreatepublic RoundRobinConnectionPool(Destination destination, int maxConnections, org.eclipse.jetty.util.Callback requester)
public RoundRobinConnectionPool(Destination destination, int maxConnections, org.eclipse.jetty.util.Callback requester, int maxMultiplex)
public int getMaxMultiplex()
getMaxMultiplex in interface ConnectionPool.Multiplexablepublic void setMaxMultiplex(int maxMultiplex)
setMaxMultiplex in interface ConnectionPool.MultiplexablemaxMultiplex - the max number of requests multiplexable on a single connectionprotected void onCreated(Connection connection)
onCreated in class AbstractConnectionPoolprotected Connection activate()
activate in class AbstractConnectionPoolpublic boolean isActive(Connection connection)
isActive in interface ConnectionPoolconnection - the connection to testpublic boolean release(Connection connection)
ConnectionPoolReturns the given connection, previously obtained via ConnectionPool.acquire(),
back to this ConnectionPool.
release in interface ConnectionPoolconnection - the connection to releasepublic boolean remove(Connection connection)
ConnectionPoolRemoves the given connection from this ConnectionPool.
remove in interface ConnectionPoolconnection - the connection to removepublic void dump(java.lang.Appendable out,
java.lang.String indent)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 1995–2018 Webtide. All rights reserved.