oracle.ucp.common.Failoverable, RACCallback, RACManagerImpl.RACCallbackExtended, UniversalConnectionPoolOracleReplayableConnectionConnectionPoolpublic class OracleConnectionConnectionPool extends OracleJDBCConnectionPool
| Modifier and Type | Field | Description |
|---|---|---|
protected AtomicBoolean |
isFirstBorrow |
|
protected boolean |
useVanillaObjects |
m_connectionInitializationCallbackborrowedAccumulator, borrowedConnectionsCount, borrowedSamples, core, DEFAULT_ABANDONED_CONNECTION_TIMEOUT, DEFAULT_CONNECTION_HARVEST_MAX_COUNT, DEFAULT_CONNECTION_HARVEST_TRIGGER_COUNT, DEFAULT_CONNECTION_VALIDATION_TIMEOUT, 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, FRAMES, HISTOGRAM_STEP, HISTOGRAM_TIME_SPAN, labeledConnectionsCount, logWriter, m_connectionAffinityCallback, m_connectionLabelingCallback, m_lifeCycleState, THREAD_POOL_SIZE, totalConnectionsCount| Constructor | Description |
|---|---|
OracleConnectionConnectionPool(JDBCConnectionFactoryAdapter connectionFactoryAdapter) |
Constructor.
|
| Modifier and Type | Method | 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,
Properties requestedLabels) |
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.
|
getConnectionInitializationCallback, getConnectionObjectForLabelingConfigure, getMaxStatements, getProxyFactory, getSQLForValidateConnection, registerConnectionInitializationCallback, setConnectionFactory, setMaxStatements, setProxyFactory, setSQLForValidateConnection, unregisterConnectionInitializationCallbackclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosePhysicalConnection, 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, useStrictXAAffinitygetMaxPoolSize, getMinPoolSize, getTotalConnectionsCount, getValidateConnectionOnBorrowgetAbandonedConnectionsCount, getAbandonedConnectionTimeout, getAbandonedConnectionTimer, getAvailableConnectionsCount, getAverageBorrowedConnectionsCount, getBorrowedConnectionsCount, getConnectionAffinityCallback, getConnectionFactoryAdapter, getConnectionHarvestMaxCount, getConnectionHarvestTriggerCount, getConnectionLabelingCallback, getConnectionLabelingHighCost, getConnectionRepurposeThreshold, getConnectionRetrievalInfo, getConnectionValidationTimeout, getConnectionWaitTimeout, getCumulativeConnectionBorrowedCount, getCumulativeConnectionReturnedCount, getCumulativeConnectionsCreated, getCumulativeConnectionUseTime, getCumulativeFailedConnectionWaitCount, getCumulativeFailedConnectionWaitTime, getCumulativeReturnedConnectionCount, getCumulativeSuccessfulConnectionWaitCount, getCumulativeSuccessfulConnectionWaitTime, getDatabaseTopologyInfo, getFailoverEventHandlerTask, getFailoverInfo, getHighCostConnectionReuseThreshold, getInactiveConnectionTimeout, getInactiveConnectionTimer, getInitialPoolSize, getLabeledConnectionsCount, getLifeCycleState, getLoginTimeout, getLogWriter, getMaxConnectionReuseCount, getMaxConnectionReuseTime, getMaxConnectionsPerService, getMaxConnectionsPerShard, getMaxPoolSize, getMinPoolSize, getName, getNeverUsedConnectionsCounter, getONSConfiguration, getPeakConnectionsCount, getPeakConnectionWaitTime, getPendingRequestsCount, getQueryTimeout, getSecondsToTrustIdleConnection, getServiceName, getShardedDatabaseInfo, getShardingMode, getShardRoutingCacheInfo, getTimeoutCheckInterval, getTimeToLiveConnectionTimeout, getTimeToLiveConnectionTimer, getTotalConnectionsCount, getValidateConnectionOnBorrow, handleFailoverEvent, ilogFine, ilogFinest, ilogThrowing, incrementConnectionsClosedCount, incrementConnectionsCreatedCount, insertToAvailableHistogram, insertToBorrowedHistogram, insertToCreatedHistogram, isFailoverEnabled, isFailoverExplicitlySet, isLifecycleFailed, isLifecycleRunning, isLifecycleStarting, isLifecycleStopped, isLifecycleStopping, isOraclePool, isShareable, reconfigure, registerConnectionLabelingCallback, removeConnectionLabelingCallback, resetAllPoolStatistics, resetNonCumulativePoolStatistics, setAbandonedConnectionTimeout, setConnectionHarvestMaxCount, setConnectionHarvestTriggerCount, setConnectionLabelingHighCost, setConnectionRepurposeThreshold, setConnectionRetrievalInfo, setConnectionValidationTimeout, setConnectionWaitTimeout, setFailoverEnabled, setFailoverInfo, setHighCostConnectionReuseThreshold, setInactiveConnectionTimeout, setInitialPoolSize, setLoginTimeout, setLogWriter, setMaxConnectionReuseCount, setMaxConnectionReuseTime, setMaxConnectionsPerService, setMaxConnectionsPerShard, setMaxPoolSize, setMinPoolSize, setName, setONSConfiguration, setOraclePool, setQueryTimeout, setRuntimeLoadBalancingEnabled, setSecondsToTrustIdleConnection, setShardingMode, setShareable, setTimeoutCheckInterval, setTimeToLiveConnectionTimeout, setValidateConnectionOnBorrow, stop, validatePoolSizescloseConnection, closePooledConnection, closeUsedPhysicalConnection, computeBorrowGiveUpTimestamp, createOnePooledConnection, discardUsedConnection, getAvailableConnection, getUsedConnection, incrementCumulativeConnectionsCreated, isAffinityStrict, isStillOkayToBorrow, purge, recycle, refresh, returnUsedPhysicalConnection, setConnectionHarvestable, setNoWaitBorrowprotected 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, Properties requestedLabels) throws UniversalConnectionPoolException
needToConfigureConnection in class oracle.ucp.common.UniversalConnectionPoolImplUniversalPooledConnection - requestedLabels - - Requested labels to configure on 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, 2017, Oracle. All rights reserved.