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, wait
commit
public static InternalConnectionPool create(ConnectionPoolConfiguration configuration)
configuration
- connection pool configuration.public void setDbAdaptor(DBAdaptor dbAdaptor)
setDbAdaptor
in interface ConnectionPool
dbAdaptor
- DB adaptor.public Connection get()
get
in interface ConnectionPool
public void close()
close
in interface AutoCloseable
close
in interface ConnectionPool
public Object poolSize()
public boolean isClosed()
isClosed
in interface ConnectionPool
true
if the pool is closed;
false
otherwise.Copyright © 2022 CURS. All rights reserved.