@ManagedObject public abstract class AbstractConnectionPool extends Object implements ConnectionPool, Dumpable
ConnectionPool.Factory, ConnectionPool.Multiplexable| Modifier and Type | Method and Description |
|---|---|
Connection |
acquire()
Returns an idle connection, if available, or schedules the opening
of a new connection and returns
null. |
void |
close()
Closes this ConnectionPool.
|
String |
dump() |
int |
getConnectionCount() |
int |
getMaxConnectionCount() |
int |
getPendingConnectionCount() |
int |
getPendingCount()
Deprecated.
use
getPendingConnectionCount() instead |
boolean |
isClosed() |
boolean |
isEmpty() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisActive, release, removedump, dump, dumpContainer, dumpIterable, dumpMapEntries, dumpObject, dumpObjects, dumpSelf, named@ManagedAttribute(value="The max number of connections", readonly=true) public int getMaxConnectionCount()
@ManagedAttribute(value="The number of connections", readonly=true) public int getConnectionCount()
@ManagedAttribute(value="The number of pending connections", readonly=true) @Deprecated public int getPendingCount()
getPendingConnectionCount() instead@ManagedAttribute(value="The number of pending connections", readonly=true) public int getPendingConnectionCount()
public boolean isEmpty()
isEmpty in interface ConnectionPoolpublic boolean isClosed()
isClosed in interface ConnectionPoolConnectionPool.close()public Connection acquire()
ConnectionPoolReturns an idle connection, if available, or schedules the opening
of a new connection and returns null.
acquire in interface ConnectionPoolpublic void close()
ConnectionPoolclose in interface Closeableclose in interface AutoCloseableclose in interface ConnectionPoolConnectionPool.isClosed()Copyright © 2010 - 2020 Adobe. All Rights Reserved