Uses of Class
com.jolbox.bonecp.ConnectionHandle

Packages that use ConnectionHandle
com.jolbox.bonecp The core package for the BoneCP connection pool. 
com.jolbox.bonecp.hooks Support for event notification on a connection state. 
 

Uses of ConnectionHandle in com.jolbox.bonecp
 

Fields in com.jolbox.bonecp declared as ConnectionHandle
protected  ConnectionHandle StatementHandle.connectionHandle
          Handle to the connection holding this statement.
 

Methods in com.jolbox.bonecp that return types with arguments of type ConnectionHandle
protected  LinkedTransferQueue<ConnectionHandle> ConnectionPartition.getConnectionsPendingRelease()
          Gets handle to a release connection handle queue.
protected  Map<Connection,Reference<ConnectionHandle>> BoneCP.getFinalizableRefs()
          Return the finalizable refs handle.
protected  TransferQueue<ConnectionHandle> ConnectionPartition.getFreeConnections()
           
 

Methods in com.jolbox.bonecp with parameters of type ConnectionHandle
protected  void ConnectionPartition.addFreeConnection(ConnectionHandle connectionHandle)
          Adds a free connection.
protected  void ConnectionMaxAgeThread.closeConnection(ConnectionHandle connection)
          Closes off this connection
protected  void BoneCP.internalReleaseConnection(ConnectionHandle connectionHandle)
          Release a connection by placing the connection back in the pool.
 boolean BoneCP.isConnectionHandleAlive(ConnectionHandle connection)
          Sends a dummy statement to the server to keep the connection alive
protected static CallableStatement MemorizeTransactionProxy.memorize(CallableStatement target, ConnectionHandle connectionHandle)
          Wrap CallableStatement with a proxy.
protected static Connection MemorizeTransactionProxy.memorize(Connection target, ConnectionHandle connectionHandle)
          Wrap connection with a proxy.
protected static PreparedStatement MemorizeTransactionProxy.memorize(PreparedStatement target, ConnectionHandle connectionHandle)
          Wrap PreparedStatement with a proxy.
protected static Statement MemorizeTransactionProxy.memorize(Statement target, ConnectionHandle connectionHandle)
          Wrap Statement with a proxy.
protected  void BoneCP.postDestroyConnection(ConnectionHandle handle)
          Update counters and call hooks.
protected  void BoneCP.putConnectionBackInPartition(ConnectionHandle connectionHandle)
          Places a connection back in the originating partition.
protected  void ConnectionPartition.trackConnectionFinalizer(ConnectionHandle connectionHandle)
          This method is a replacement for finalize() but avoids all its pitfalls (see Joshua Bloch et.
 

Method parameters in com.jolbox.bonecp with type arguments of type ConnectionHandle
protected  void ConnectionPartition.setFreeConnections(TransferQueue<ConnectionHandle> freeConnections)
           
 

Constructors in com.jolbox.bonecp with parameters of type ConnectionHandle
CallableStatementHandle(CallableStatement internalCallableStatement, String sql, ConnectionHandle connectionHandle, String cacheKey, IStatementCache cache)
          CallableStatement constructor
CloseThreadMonitor(Thread threadToMonitor, ConnectionHandle connectionHandle, String stackTrace, long closeConnectionWatchTimeout)
           
PreparedStatementHandle(PreparedStatement internalPreparedStatement, String sql, ConnectionHandle connectionHandle, String cacheKey, IStatementCache cache)
          PreparedStatement Wrapper constructor.
StatementHandle(Statement internalStatement, ConnectionHandle connectionHandle, boolean logStatementsEnabled)
          Constructor for empty statement (created via connection.createStatement)
StatementHandle(Statement internalStatement, String sql, IStatementCache cache, ConnectionHandle connectionHandle, String cacheKey, boolean logStatementsEnabled)
          Constructor to statement handle wrapper.
 

Constructor parameters in com.jolbox.bonecp with type arguments of type ConnectionHandle
ConnectionReleaseHelperThread(BlockingQueue<ConnectionHandle> queue, BoneCP pool)
          Helper Thread constructor.
 

Uses of ConnectionHandle in com.jolbox.bonecp.hooks
 

Methods in com.jolbox.bonecp.hooks with parameters of type ConnectionHandle
 void ConnectionHook.onAcquire(ConnectionHandle connection)
          Called upon getting a new connection from the JDBC driver (and prior to inserting into the pool).
 void AbstractConnectionHook.onAcquire(ConnectionHandle connection)
           
 void ConnectionHook.onAfterStatementExecute(ConnectionHandle conn, StatementHandle statement, String sql, Map<Object,Object> params)
          Called right after a statement has executed.
 void AbstractConnectionHook.onAfterStatementExecute(ConnectionHandle conn, StatementHandle statement, String sql, Map<Object,Object> params)
           
 void ConnectionHook.onBeforeStatementExecute(ConnectionHandle conn, StatementHandle statement, String sql, Map<Object,Object> params)
          Called before a statement is about to execute.
 void AbstractConnectionHook.onBeforeStatementExecute(ConnectionHandle conn, StatementHandle statement, String sql, Map<Object,Object> params)
           
 void ConnectionHook.onCheckIn(ConnectionHandle connection)
          Called when the connection is about to be returned to the pool.
 void AbstractConnectionHook.onCheckIn(ConnectionHandle connection)
           
 void ConnectionHook.onCheckOut(ConnectionHandle connection)
          Called when the connection is extracted from the pool and about to be given to the application.
 void AbstractConnectionHook.onCheckOut(ConnectionHandle connection)
           
 boolean ConnectionHook.onConnectionException(ConnectionHandle connection, String state, Throwable t)
          Called whenever an exception on a connection occurs.
 boolean AbstractConnectionHook.onConnectionException(ConnectionHandle connection, String state, Throwable t)
           
 void ConnectionHook.onDestroy(ConnectionHandle connection)
          Called when the connection is about to be completely removed from the pool.
 void AbstractConnectionHook.onDestroy(ConnectionHandle connection)
           
 ConnectionState ConnectionHook.onMarkPossiblyBroken(ConnectionHandle connection, String state, SQLException e)
          Called to give you a chance to override the logic on whether a connection can be considered broken or not.
 ConnectionState AbstractConnectionHook.onMarkPossiblyBroken(ConnectionHandle connection, String state, SQLException e)
           
 void ConnectionHook.onQueryExecuteTimeLimitExceeded(ConnectionHandle conn, Statement statement, String sql, Map<Object,Object> logParams)
          Deprecated. 
 void AbstractConnectionHook.onQueryExecuteTimeLimitExceeded(ConnectionHandle handle, Statement statement, String sql, Map<Object,Object> logParams)
          Deprecated. 
 void ConnectionHook.onQueryExecuteTimeLimitExceeded(ConnectionHandle conn, Statement statement, String sql, Map<Object,Object> logParams, long timeElapsedInNs)
          Called when a query execute time limit has been set and an executing query took longer to than the limit to return control to the application.
 void AbstractConnectionHook.onQueryExecuteTimeLimitExceeded(ConnectionHandle handle, Statement statement, String sql, Map<Object,Object> logParams, long timeElapsedInNs)
           
 



Copyright © 2009-2011 JolBox. All Rights Reserved.