public class OracleConnectionConnectionPool extends OracleJDBCConnectionPool
| Modifier and Type | Field and Description |
|---|---|
protected AtomicBoolean |
isFirstBorrow |
protected boolean |
useVanillaObjects |
m_connectionInitializationCallbackavailCondition, 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 |
|---|
OracleConnectionConnectionPool(JDBCConnectionFactoryAdapter connectionFactoryAdapter)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
UniversalPooledConnection |
borrowConnection(ConnectionRetrievalInfo connectionRetrievalInfo)
Gets a connection from the connection pool.
|
boolean |
closeConnection(Connection connection)
Closes the
java.sql.Connection. |
Connection |
getConnection(JDBCConnectionRetrievalInfo connectionRetrievalInfo)
Gets a
java.sql.Connection from the connection pool. |
protected String |
getDRCPPLSQLCallbackName(UniversalPooledConnection pc)
Returns the PL/SQL Fix-up callback name if configured,
otherwise returns
Null. |
protected boolean |
isDRCPEnabled(UniversalPooledConnection pc)
DRCP feature is currently available only for OracleConnectionConnectionPool
so returing
false by default. |
protected boolean |
isDRCPMultiTagEnabled(UniversalPooledConnection pc)
Returns true if DRCP Multitag is enabled false otherwise.
|
protected boolean |
needToConfigureConnection(UniversalPooledConnection pc,
ConnectionRetrievalInfo cri)
While using DRCP the connection selection is done by DRCP machinery and
UCP does not have any control over the selection.
|
boolean |
returnConnection(Connection connection)
Returns a
java.sql.Connection back into the connection pool. |
void |
returnConnection(UniversalPooledConnection upc)
Returns a connection back into the connection pool.
|
closePhysicalConnection, createOnePooledConnection, getAvailableConnections, getAvailableConnectionToInstance, getConnectionRepurposeCount, getFailedAffinityBasedBorrowCount, getFailedAffinityBasedBorrowCount, getFailedRCLBBasedBorrowCount, getFailedRCLBBasedBorrowCount, getFCFProcessingInfo, getFCFProcessingInfo, getFCFProcessingInfoProcessedOnly, getFCFProcessingInfoProcessedOnly, getPoolName, getRoomToGrowPool, getShardConnectionStats, getStatistics, getSuccessfulAffinityBasedBorrowCount, getSuccessfulAffinityBasedBorrowCount, getSuccessfulRCLBBasedBorrowCount, getSuccessfulRCLBBasedBorrowCount, getUrl, initiateDownEventProcessing, initiateUpEventProcessing, isRuntimeLoadBalancingEnabled, isValid, lbaEventOccurred, onAddingConnectionToPool, onRemovingConnectionFromPool, openNewConnection, registerConnectionAffinityCallback, removeConnectionAffinityCallback, start, superClosePhysicalConnection, tearDownConnectionsForInstance, useStrictWebSessionAffinity, useStrictXAAffinitygetConnectionInitializationCallback, getConnectionObjectForLabelingConfigure, getMaxStatements, getSQLForValidateConnection, registerConnectionInitializationCallback, setMaxStatements, setSQLForValidateConnection, unregisterConnectionInitializationCallbackcloseConnection, closeUsedPhysicalConnection, createOnePooledConnection, discardUsedConnection, getAvailableConnection, getUsedConnection, incrementCumulativeConnectionsCreated, isAffinityStrict, purge, recycle, refresh, returnUsedPhysicalConnection, setConnectionHarvestablegetAbandonedConnectionsCount, 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, validatePoolSizesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMaxPoolSize, getMinPoolSize, getTotalConnectionsCount, getValidateConnectionOnBorrowprotected boolean useVanillaObjects
protected AtomicBoolean isFirstBorrow
public OracleConnectionConnectionPool(JDBCConnectionFactoryAdapter connectionFactoryAdapter) throws UniversalConnectionPoolException
connectionFactoryAdapter - The connection factory adapter.UniversalConnectionPoolException - If an error occurs constructing this.public Connection getConnection(JDBCConnectionRetrievalInfo connectionRetrievalInfo) throws UniversalConnectionPoolException
java.sql.Connection from the connection pool.connectionRetrievalInfo - Info to use to get the
java.sql.Connection.java.sql.Connection.UniversalConnectionPoolException - if an error occurs getting a java.sql.Connection.NoAvailableConnectionsException - if all of the connections are in use.public UniversalPooledConnection borrowConnection(ConnectionRetrievalInfo connectionRetrievalInfo) throws UniversalConnectionPoolException
borrowConnection in interface UniversalConnectionPoolborrowConnection in class OracleJDBCConnectionPoolconnectionRetrievalInfo - Info to use to get the connection.UniversalConnectionPoolException - if an error occurs getting a
connection.NoAvailableConnectionsException - if all of the connections are
in use.public boolean returnConnection(Connection connection) throws UniversalConnectionPoolException
java.sql.Connection back into the connection pool.connection - The java.sql.Connection to return back
into the pool.true if the java.sql.Connection is in
use and was returned to the pool. false otherwise.UniversalConnectionPoolException - if an error occurs
returning the java.sql.Connection.public void returnConnection(UniversalPooledConnection upc) throws UniversalConnectionPoolException
oracle.ucp.common.UniversalConnectionPoolBasereturnConnection in interface UniversalConnectionPoolreturnConnection in class oracle.ucp.common.UniversalConnectionPoolImplupc - The connection to return back into the
pool.UniversalConnectionPoolExceptionpublic boolean closeConnection(Connection connection) throws UniversalConnectionPoolException
java.sql.Connection. Do not put it back into the
pool.connection - The java.sql.Connection to close.true if the java.sql.Connection is in
use and was closed. false otherwise.UniversalConnectionPoolException - if an error occurs closing the java.sql.Connection.protected boolean needToConfigureConnection(UniversalPooledConnection pc, ConnectionRetrievalInfo cri) throws UniversalConnectionPoolException
needToConfigureConnection in class oracle.ucp.common.UniversalConnectionPoolImplUniversalPooledConnection - cri - - ConnectionRetrievalInfo for the selected connectionUniversalConnectionPoolException - - When there is a problem
while deciding if the connection should be configuredprotected boolean isDRCPEnabled(UniversalPooledConnection pc) throws UniversalConnectionPoolException
OracleJDBCConnectionPoolfalse by default.isDRCPEnabled in class OracleJDBCConnectionPoolUniversalConnectionPoolExceptionprotected boolean isDRCPMultiTagEnabled(UniversalPooledConnection pc) throws UniversalConnectionPoolException
isDRCPMultiTagEnabled in class OracleJDBCConnectionPoolpc - UniversalConnectionPoolExceptionprotected String getDRCPPLSQLCallbackName(UniversalPooledConnection pc) throws UniversalConnectionPoolException
Null.getDRCPPLSQLCallbackName in class OracleJDBCConnectionPoolUniversalConnectionPoolException
Copyright © 2008, 2016, Oracle. All rights reserved.