public interface ConnectionPool
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
checkIn(ConnectionWrapper connectionWrapper)
Check in checked-out connection without transaction.
|
void |
checkInTx(Transaction tx)
Check in checked-out connection via specified transaction.
|
ConnectionWrapper |
checkOut()
Check out connection, may be on transaction.
|
void |
close() |
int |
getActivePoolSize() |
int |
getFreePoolSize() |
int |
getMaxPoolSize() |
int |
getMinPoolSize() |
int |
getTxActivePoolSize() |
void |
release(ConnectionWrapper connectionWrapper)
Release connection from this connection pool.
|
ConnectionWrapper checkOut() throws SQLException
SQLExceptionvoid checkIn(ConnectionWrapper connectionWrapper)
connectionWrapper - The wrapped connection to database, should be checked-out before. (NotNull)void checkInTx(Transaction tx)
tx - The transaction related to this connection pool. (NullAllowed: then do nothing just in case)void release(ConnectionWrapper connectionWrapper)
connectionWrapper - The released connection. (NotNull)void close()
int getActivePoolSize()
int getTxActivePoolSize()
int getFreePoolSize()
int getMaxPoolSize()
int getMinPoolSize()
Copyright © 2015–2019 The DBFlute Project. All rights reserved.