public class OraclePooledConnectionConnectionPool extends OracleJDBCConnectionPool implements ConnectionEventListener
m_connectionInitializationCallback
availCondition, availLock, borrowedAccumulator, borrowedConnectionsCount, borrowedSamples, core, DEFAULT_ABANDONED_CONNECTION_TIMEOUT, DEFAULT_CONNECTION_HARVEST_MAX_COUNT, DEFAULT_CONNECTION_HARVEST_TRIGGER_COUNT, DEFAULT_CONNECTION_WAIT_TIMEOUT, DEFAULT_INACTIVE_CONNECTION_TIMEOUT, DEFAULT_INITIAL_POOL_SIZE, DEFAULT_MAX_CONNECTIONS_PER_SERVICE, DEFAULT_MAX_CONNECTIONS_PER_SHARD, DEFAULT_MAX_POOL_SIZE, DEFAULT_MIN_POOL_SIZE, DEFAULT_POOLNAME_PREFIX, DEFAULT_QUERY_TIMEOUT, DEFAULT_SECONDS_TO_TRUST_IDLE_CONNECTION, DEFAULT_TIME_TO_LIVE_CONNECTION_TIMEOUT, DEFAULT_TIMEOUT_CHECK_INTERVAL, DEFAULT_VALIDATE_BORROWED_CONNECTION, logWriter, m_connectionAffinityCallback, m_connectionLabelingCallback, m_lifeCycleState, THREAD_POOL_SIZE, totalConnectionsCount
Constructor and Description |
---|
OraclePooledConnectionConnectionPool(JDBCConnectionFactoryAdapter connectionFactoryAdapter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
closePooledConnection(PooledConnection pooledConnection)
Closes the
javax.sql.PooledConnection . |
void |
connectionClosed(ConnectionEvent event)
Notifies this
ConnectionEventListener that the
application has called the close method on its
representation of a pooled connection. |
void |
connectionErrorOccurred(ConnectionEvent event)
Notifies this
ConnectionEventListener that a fatal
error has occurred and the pooled connection can no longer be used. |
PooledConnection |
getPooledConnection(JDBCConnectionRetrievalInfo connectionRetrievalInfo)
Gets a
javax.sql.PooledConnection from the connection pool. |
boolean |
returnPooledConnection(PooledConnection pooledConnection)
Returns a
javax.sql.PooledConnection back into the
connection pool. |
borrowConnection, closePhysicalConnection, createOnePooledConnection, getAvailableConnections, getAvailableConnectionToInstance, getConnectionRepurposeCount, getDRCPPLSQLCallbackName, getFailedAffinityBasedBorrowCount, getFailedAffinityBasedBorrowCount, getFailedRCLBBasedBorrowCount, getFailedRCLBBasedBorrowCount, getFCFProcessingInfo, getFCFProcessingInfo, getFCFProcessingInfoProcessedOnly, getFCFProcessingInfoProcessedOnly, getPoolName, getRoomToGrowPool, getShardConnectionStats, getStatistics, getSuccessfulAffinityBasedBorrowCount, getSuccessfulAffinityBasedBorrowCount, getSuccessfulRCLBBasedBorrowCount, getSuccessfulRCLBBasedBorrowCount, getUrl, initiateDownEventProcessing, initiateUpEventProcessing, isDRCPEnabled, isDRCPMultiTagEnabled, isRuntimeLoadBalancingEnabled, isValid, lbaEventOccurred, onAddingConnectionToPool, onRemovingConnectionFromPool, openNewConnection, registerConnectionAffinityCallback, removeConnectionAffinityCallback, start, superClosePhysicalConnection, tearDownConnectionsForInstance, useStrictWebSessionAffinity, useStrictXAAffinity
getConnectionInitializationCallback, getConnectionObjectForLabelingConfigure, getMaxStatements, getSQLForValidateConnection, registerConnectionInitializationCallback, setMaxStatements, setSQLForValidateConnection, unregisterConnectionInitializationCallback
closeConnection, closeUsedPhysicalConnection, createOnePooledConnection, discardUsedConnection, getAvailableConnection, getUsedConnection, incrementCumulativeConnectionsCreated, isAffinityStrict, needToConfigureConnection, purge, recycle, refresh, returnConnection, returnUsedPhysicalConnection, setConnectionHarvestable
getAbandonedConnectionsCount, getAbandonedConnectionTimeout, getAbandonedConnectionTimer, getAvailableConnectionsCount, getAverageBorrowedConnectionsCount, getBorrowedConnectionsCount, getConnectionAffinityCallback, getConnectionFactoryAdapter, getConnectionHarvestMaxCount, getConnectionHarvestTriggerCount, getConnectionLabelingCallback, getConnectionLabelingHighCost, getConnectionRepurposeThreshold, getConnectionRetrievalInfo, getConnectionWaitTimeout, getCumulativeConnectionBorrowedCount, getCumulativeConnectionReturnedCount, getCumulativeConnectionsCreated, getCumulativeConnectionUseTime, getCumulativeFailedConnectionWaitCount, getCumulativeFailedConnectionWaitTime, getCumulativeReturnedConnectionCount, getCumulativeSuccessfulConnectionWaitCount, getCumulativeSuccessfulConnectionWaitTime, getDatabaseTopologyInfo, getFailoverEventHandlerTask, getFailoverInfo, getHighCostConnectionReuseThreshold, getInactiveConnectionTimeout, getInactiveConnectionTimer, getInitialPoolSize, getLifeCycleState, getLoginTimeout, getLogWriter, getMaxConnectionReuseCount, getMaxConnectionReuseTime, getMaxConnectionsPerService, getMaxConnectionsPerShard, getMaxPoolSize, getMinPoolSize, getName, getONSConfiguration, getPeakConnectionsCount, getPeakConnectionWaitTime, getPendingRequestsCount, getQueryTimeout, getSecondsToTrustIdleConnection, getServiceName, getShardedDatabaseInfo, getShardRoutingCacheInfo, getTimeoutCheckInterval, getTimeToLiveConnectionTimeout, getTimeToLiveConnectionTimer, getTotalConnectionsCount, getValidateConnectionOnBorrow, handleFailoverEvent, ilogFine, ilogFinest, ilogThrowing, incrementConnectionsClosedCount, incrementConnectionsCreatedCount, isFailoverEnabled, isFailoverExplicitlySet, isLifecycleFailed, isLifecycleRunning, isLifecycleStarting, isLifecycleStopped, isLifecycleStopping, isShareable, reconfigure, registerConnectionLabelingCallback, removeConnectionLabelingCallback, resetAllPoolStatistics, resetNonCumulativePoolStatistics, setAbandonedConnectionTimeout, setConnectionHarvestMaxCount, setConnectionHarvestTriggerCount, setConnectionLabelingHighCost, setConnectionRepurposeThreshold, setConnectionRetrievalInfo, setConnectionWaitTimeout, setFailoverEnabled, setFailoverInfo, setHighCostConnectionReuseThreshold, setInactiveConnectionTimeout, setInitialPoolSize, setLoginTimeout, setLogWriter, setMaxConnectionReuseCount, setMaxConnectionReuseTime, setMaxConnectionsPerService, setMaxConnectionsPerShard, setMaxPoolSize, setMinPoolSize, setName, setONSConfiguration, setQueryTimeout, setRuntimeLoadBalancingEnabled, setSecondsToTrustIdleConnection, setShareable, setTimeoutCheckInterval, setTimeToLiveConnectionTimeout, setValidateConnectionOnBorrow, stop, validatePoolSizes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMaxPoolSize, getMinPoolSize, getTotalConnectionsCount, getValidateConnectionOnBorrow
public OraclePooledConnectionConnectionPool(JDBCConnectionFactoryAdapter connectionFactoryAdapter) throws UniversalConnectionPoolException
connectionFactoryAdapter
- The connection factory adapter.UniversalConnectionPoolException
- If an error occurs constructing this.public PooledConnection getPooledConnection(JDBCConnectionRetrievalInfo connectionRetrievalInfo) throws UniversalConnectionPoolException
javax.sql.PooledConnection
from the connection pool.connectionRetrievalInfo
- Info to use to get the
javax.sql.PooledConnection
.javax.sql.PooledConnection
.UniversalConnectionPoolException
- if an error occurs getting a
javax.sql.PooledConnection
.NoAvailableConnectionsException
- if all of the connections are in use.public boolean returnPooledConnection(PooledConnection pooledConnection) throws UniversalConnectionPoolException
javax.sql.PooledConnection
back into the
connection pool.pooledConnection
- The javax.sql.PooledConnection
to return back into the pool.true
if the javax.sql.PooledConnection
is in use and was returned to the pool;
false
otherwise.UniversalConnectionPoolException
- if an error occurs
returning the javax.sql.PooledConnection
.public boolean closePooledConnection(PooledConnection pooledConnection) throws UniversalConnectionPoolException
javax.sql.PooledConnection
. Do not put it back
into the pool.pooledConnection
- The javax.sql.PooledConnection
to
close.true
if the javax.sql.PooledConnection
is in use and was closed; false
otherwise.UniversalConnectionPoolException
- if an error occurs closing the
javax.sql.PooledConnection
.public void connectionClosed(ConnectionEvent event)
ConnectionEventListener
that the
application has called the close
method on its
representation of a pooled connection.connectionClosed
in interface ConnectionEventListener
event
- an event object describing the source of the event.public void connectionErrorOccurred(ConnectionEvent event)
ConnectionEventListener
that a fatal
error has occurred and the pooled connection can no longer be used.
The driver makes this notification just before it throws the
application the SQLException
contained in the given
ConnectionEvent
object.connectionErrorOccurred
in interface ConnectionEventListener
event
- an event object describing the source of the event and
containing the SQLException
that the
driver is about to throw
Copyright © 2008, 2016, Oracle. All rights reserved.