java.lang.AutoCloseable
, java.sql.Connection
, java.sql.Wrapper
, PoolableConnectionMXBean
, TrackedUse
public class PoolableManagedConnection extends PoolableConnection
PoolableConnection
Constructor | Description |
---|---|
PoolableManagedConnection(TransactionRegistry transactionRegistry,
java.sql.Connection conn,
ObjectPool<PoolableConnection> pool) |
Create a PoolableManagedConnection.
|
PoolableManagedConnection(TransactionRegistry transactionRegistry,
java.sql.Connection conn,
ObjectPool<PoolableConnection> pool,
java.util.Collection<java.lang.String> disconnectSqlCodes,
boolean fastFailValidation) |
Create a PoolableManagedConnection.
|
Modifier and Type | Method | Description |
---|---|---|
void |
reallyClose() |
Actually close the underlying connection.
|
addTrace, clearTrace, getLastUsed, getTrace, removeTrace, setLastUsed, setLastUsed
beginRequest, endRequest, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid
abort, activate, checkOpen, clearCachedState, clearWarnings, closeInternal, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCacheState, getCatalog, getClientInfo, getClientInfo, getDefaultQueryTimeout, getDelegate, getDelegateInternal, getHoldability, getInnermostDelegate, getInnermostDelegateInternal, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, innermostDelegateEquals, isClosedInternal, isReadOnly, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCacheState, setCatalog, setClientInfo, setClientInfo, setClosedInternal, setDefaultQueryTimeout, setDelegate, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, toString, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, getToString, handleException, isClosed, passivate, validate
clearCachedState, clearWarnings, getAutoCommit, getCacheState, getCatalog, getHoldability, getSchema, getTransactionIsolation, isReadOnly, setAutoCommit, setCacheState, setCatalog, setHoldability, setReadOnly, setSchema, setTransactionIsolation
public PoolableManagedConnection(TransactionRegistry transactionRegistry, java.sql.Connection conn, ObjectPool<PoolableConnection> pool)
transactionRegistry
- transaction registryconn
- underlying connectionpool
- connection poolpublic PoolableManagedConnection(TransactionRegistry transactionRegistry, java.sql.Connection conn, ObjectPool<PoolableConnection> pool, java.util.Collection<java.lang.String> disconnectSqlCodes, boolean fastFailValidation)
transactionRegistry
- transaction registryconn
- underlying connectionpool
- connection pooldisconnectSqlCodes
- SQL_STATE codes considered fatal disconnection errorsfastFailValidation
- true means fatal disconnection errors cause subsequent validations to fail immediately (no attempt to
run query or isValid)public void reallyClose() throws java.sql.SQLException
reallyClose
in interface PoolableConnectionMXBean
reallyClose
in class PoolableConnection
java.sql.SQLException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.