public final class InternalConnectionPool extends Object implements ConnectionPool
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes up connection pool and all its connections, and makes it inaccessible.
|
static InternalConnectionPool |
create(ConnectionPoolConfiguration configuration)
Factory method for connection pool creation.
|
Connection |
get()
Returns a connection from pool.
|
boolean |
isClosed()
If the poll is closed then this method will return true.
|
Object |
poolSize()
Returns the number of connections available in the pool.
|
void |
setDbAdaptor(DBAdaptor dbAdaptor)
Sets DB adaptor.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcommitpublic static InternalConnectionPool create(ConnectionPoolConfiguration configuration)
configuration - connection pool configuration.public void setDbAdaptor(DBAdaptor dbAdaptor)
setDbAdaptor in interface ConnectionPooldbAdaptor - DB adaptor.public Connection get()
get in interface ConnectionPoolpublic void close()
close in interface AutoCloseableclose in interface ConnectionPoolpublic Object poolSize()
public boolean isClosed()
isClosed in interface ConnectionPooltrue if the pool is closed;
false otherwise.Copyright © 2023 CURS. All rights reserved.