Uses of Class
org.apache.tomcat.jdbc.pool.PooledConnection
Packages that use PooledConnection
-
Uses of PooledConnection in org.apache.tomcat.jdbc.pool
Fields in org.apache.tomcat.jdbc.pool declared as PooledConnectionModifier and TypeFieldDescriptionprotected PooledConnectionProxyConnection.connectionThe underlying pooled connection.Methods in org.apache.tomcat.jdbc.pool that return PooledConnectionModifier and TypeMethodDescriptionprotected PooledConnectionConnectionPool.borrowConnection(long now, PooledConnection con, String username, String password) Validates and configures a previously idle connectionprotected PooledConnectionConnectionPool.create(boolean incrementCounter) Create a new pooled connection object.protected PooledConnectionConnectionPool.createConnection(long now, PooledConnection notUsed, String username, String password) Creates a JDBC connection and tries to connect to the database.ProxyConnection.getConnection()Returns the underlying pooled connection.ProxyConnection.getDelegateConnection()Returns the delegate pooled connection.Methods in org.apache.tomcat.jdbc.pool with parameters of type PooledConnectionModifier and TypeMethodDescriptionprotected voidConnectionPool.abandon(PooledConnection con) thread safe way to abandon a connection signals a connection to be abandoned. this will disconnect the connection, and log the stack trace if logAbandoned=trueprotected PooledConnectionConnectionPool.borrowConnection(long now, PooledConnection con, String username, String password) Validates and configures a previously idle connectionprotected PooledConnectionConnectionPool.createConnection(long now, PooledConnection notUsed, String username, String password) Creates a JDBC connection and tries to connect to the database.voidJdbcInterceptor.disconnected(ConnectionPool parent, PooledConnection con, boolean finalizing) Called whenConnection.close()is called on the underlying connection.protected voidConnectionPool.disconnectEvent(PooledConnection con, boolean finalizing) Hook to perform final actions on a pooled connection object once it has been disconnected and will be discardedprotected voidConnectionPool.finalize(PooledConnection con) Hook to perform final actions on a pooled connection object once it has been disconnected and will be discardedprotected booleanConnectionPool.reconnectIfExpired(PooledConnection con) Checks whether this connection hasexpiredand tries to reconnect if it has.protected voidConnectionPool.release(PooledConnection con) thread safe way to release a connectionvoidDisposableConnectionFacade.reset(ConnectionPool parent, PooledConnection con) abstract voidJdbcInterceptor.reset(ConnectionPool parent, PooledConnection con) Gets called each time the connection is borrowed from the pool This means that if an interceptor holds a reference to the connection the interceptor can be reused for another connection.voidProxyConnection.reset(ConnectionPool parent, PooledConnection con) voidTrapException.reset(ConnectionPool parent, PooledConnection con) no-op for this interceptor. no state is stored.protected voidConnectionPool.returnConnection(PooledConnection con) Returns a connection to the pool If the pool is closed, the connection will be released If the connection is not part of the busy queue, it will be released.voidProxyConnection.setConnection(PooledConnection connection) Sets the underlying pooled connection.protected ConnectionConnectionPool.setupConnection(PooledConnection con) configures a pooled connection as a proxy.protected booleanConnectionPool.shouldClose(PooledConnection con, int action) Determines if a connection should be closed upon return to the pool.protected booleanConnectionPool.shouldReleaseIdle(long now, PooledConnection con, long time) Determines whether an idle connection should be released from the pool.protected voidConnectionPool.suspect(PooledConnection con) Thread safe way to suspect a connection.protected booleanConnectionPool.terminateTransaction(PooledConnection con) Terminate the current transaction for the given connection.Constructors in org.apache.tomcat.jdbc.pool with parameters of type PooledConnectionModifierConstructorDescriptionCreates a ConnectionFuture backed by an already available pooled connection.protectedProxyConnection(ConnectionPool parent, PooledConnection con, boolean useEquals) Creates a new ProxyConnection wrapping the given pooled connection.Constructor parameters in org.apache.tomcat.jdbc.pool with type arguments of type PooledConnectionModifierConstructorDescriptionCreates a ConnectionFuture backed by an async pooled connection future. -
Uses of PooledConnection in org.apache.tomcat.jdbc.pool.interceptor
Methods in org.apache.tomcat.jdbc.pool.interceptor with parameters of type PooledConnectionModifier and TypeMethodDescriptionvoidConnectionState.disconnected(ConnectionPool parent, PooledConnection con, boolean finalizing) voidQueryTimeoutInterceptor.disconnected(ConnectionPool parent, PooledConnection con, boolean finalizing) Forgets the reported refusal, as the physical connection this interceptor is attached to is gone: the session that replaces it gets its own refusal recorded and its own warning, the way it gets its own driver to answer the call.voidStatementCache.disconnected(ConnectionPool parent, PooledConnection con, boolean finalizing) voidAbstractCreateStatementInterceptor.reset(ConnectionPool parent, PooledConnection con) no-op for this interceptor. no state is stored.voidConnectionState.reset(ConnectionPool parent, PooledConnection con) Restores the connection state the pool was configured to enforce.voidResetAbandonedTimer.reset(ConnectionPool parent, PooledConnection con) voidSlowQueryReport.reset(ConnectionPool parent, PooledConnection con) Resets the query statistics reference when a connection is reset.voidSlowQueryReportJmx.reset(ConnectionPool parent, PooledConnection con) Resets this interceptor for a new connection, registering JMX if applicable.voidStatementCache.reset(ConnectionPool parent, PooledConnection con) voidStatementFinalizer.reset(ConnectionPool parent, PooledConnection con)