Class GooGooStatementCache
java.lang.Object
com.mchange.v2.c3p0.stmt.GooGooStatementCache
- Direct Known Subclasses:
DoubleMaxStatementCache, GlobalMaxOnlyStatementCache, PerConnectionMaxOnlyStatementCache
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected classprotected final classprotected static final class -
Constructor Summary
ConstructorsConstructorDescriptionGooGooStatementCache(com.mchange.v2.async.AsynchronousRunner blockingTaskAsyncRunner, com.mchange.v2.async.AsynchronousRunner deferredStatementDestroyer, boolean cancelAutomaticallyClosedStatements) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckinAll(Connection pcon) voidcheckinStatement(Object pstmt) checkoutStatement(Connection physicalConnection, Method stmtProducingMethod, Object[] args) voidclose()voidcloseAll(Connection pcon) intintintintintintinUse(Connection physicalConnection) booleanisClosed()booleantryMarkConnectionInUse(Connection physicalConnection) voidunmarkConnectionInUse(Connection physicalConnection) voidwaitMarkConnectionInUse(Connection physicalConnection)
-
Constructor Details
-
GooGooStatementCache
public GooGooStatementCache(com.mchange.v2.async.AsynchronousRunner blockingTaskAsyncRunner, com.mchange.v2.async.AsynchronousRunner deferredStatementDestroyer, boolean cancelAutomaticallyClosedStatements)
-
-
Method Details
-
getNumStatements
public int getNumStatements() -
getNumStatementsCheckedOut
public int getNumStatementsCheckedOut() -
getNumConnectionsWithCachedStatements
public int getNumConnectionsWithCachedStatements() -
dumpStatementCacheStatus
-
waitMarkConnectionInUse
- Throws:
InterruptedException
-
tryMarkConnectionInUse
-
unmarkConnectionInUse
-
inUse
-
getStatementDestroyerNumConnectionsInUse
public int getStatementDestroyerNumConnectionsInUse() -
getStatementDestroyerNumConnectionsWithDeferredDestroyStatements
public int getStatementDestroyerNumConnectionsWithDeferredDestroyStatements() -
getStatementDestroyerNumDeferredDestroyStatements
public int getStatementDestroyerNumDeferredDestroyStatements() -
checkoutStatement
public Object checkoutStatement(Connection physicalConnection, Method stmtProducingMethod, Object[] args) throws SQLException, com.mchange.v2.util.ResourceClosedException - Throws:
SQLExceptioncom.mchange.v2.util.ResourceClosedException
-
checkinStatement
- Throws:
SQLException
-
checkinAll
- Throws:
SQLException
-
closeAll
- Throws:
SQLException
-
close
- Throws:
SQLException
-
isClosed
public boolean isClosed()
-