public final class PoolBagEntry extends Object implements ConcurrentBag.IConcurrentBagEntry
Modifier and Type | Field and Description |
---|---|
boolean |
aborted |
Connection |
connection |
long |
creationTime |
boolean |
evicted |
boolean |
isAutoCommit |
long |
lastAccess |
long |
lastOpenTime |
FastList<Statement> |
openStatements |
HikariPool |
parentPool |
STATE_IN_USE, STATE_NOT_IN_USE, STATE_REMOVED, STATE_RESERVED
Constructor and Description |
---|
PoolBagEntry(Connection connection,
HikariPool pool) |
Modifier and Type | Method and Description |
---|---|
void |
releaseConnection(long lastAccess)
Release this entry back to the pool.
|
void |
resetConnectionState()
Reset the connection to its original state.
|
void |
setAutoCommit(boolean isAutoCommit) |
void |
setCatalog(String catalog) |
void |
setNetworkTimeout(int networkTimeout) |
void |
setReadOnly(boolean isReadOnly) |
void |
setTransactionIsolation(int transactionIsolation) |
AtomicInteger |
state() |
String |
toString() |
public final HikariPool parentPool
public final long creationTime
public Connection connection
public long lastAccess
public volatile long lastOpenTime
public volatile boolean evicted
public volatile boolean aborted
public boolean isAutoCommit
public PoolBagEntry(Connection connection, HikariPool pool)
public void releaseConnection(long lastAccess)
lastAccess
- last access time-stamppublic void resetConnectionState() throws SQLException
SQLException
- thrown if there is an error resetting the connection statepublic void setNetworkTimeout(int networkTimeout)
networkTimeout
- the networkTimeout to setpublic void setTransactionIsolation(int transactionIsolation)
transactionIsolation
- the transactionIsolation to setpublic void setCatalog(String catalog)
catalog
- the catalog to setpublic void setAutoCommit(boolean isAutoCommit)
isAutoCommit
- the isAutoCommit to setpublic void setReadOnly(boolean isReadOnly)
isReadOnly
- the isReadOnly to setpublic AtomicInteger state()
state
in interface ConcurrentBag.IConcurrentBagEntry
Copyright © 2016 Zaxxer.com. All rights reserved.