Package com.mchange.v2.c3p0.stmt
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 class
protected class
protected final class
protected static final class
-
Constructor Summary
ConstructorsConstructorDescriptionGooGooStatementCache
(com.mchange.v2.async.AsynchronousRunner blockingTaskAsyncRunner, com.mchange.v2.async.AsynchronousRunner deferredStatementDestroyer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkinAll
(Connection pcon) void
checkinStatement
(Object pstmt) checkoutStatement
(Connection physicalConnection, Method stmtProducingMethod, Object[] args) void
close()
void
closeAll
(Connection pcon) int
int
int
int
int
int
inUse
(Connection physicalConnection) boolean
isClosed()
boolean
tryMarkConnectionInUse
(Connection physicalConnection) void
unmarkConnectionInUse
(Connection physicalConnection) void
waitMarkConnectionInUse
(Connection physicalConnection)
-
Constructor Details
-
GooGooStatementCache
public GooGooStatementCache(com.mchange.v2.async.AsynchronousRunner blockingTaskAsyncRunner, com.mchange.v2.async.AsynchronousRunner deferredStatementDestroyer)
-
-
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:
SQLException
com.mchange.v2.util.ResourceClosedException
-
checkinStatement
- Throws:
SQLException
-
checkinAll
- Throws:
SQLException
-
closeAll
- Throws:
SQLException
-
close
- Throws:
SQLException
-
isClosed
public boolean isClosed()
-