public abstract class GooGooStatementCache
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
GooGooStatementCache.ConnectionStatementManager |
protected class |
GooGooStatementCache.Deathmarch |
protected class |
GooGooStatementCache.DeathmarchConnectionStatementManager |
protected static class |
GooGooStatementCache.SimpleConnectionStatementManager |
| Constructor and Description |
|---|
GooGooStatementCache(com.mchange.v2.async.AsynchronousRunner blockingTaskAsyncRunner,
com.mchange.v2.async.AsynchronousRunner deferredStatementDestroyer) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkinAll(java.sql.Connection pcon) |
void |
checkinStatement(java.lang.Object pstmt) |
java.lang.Object |
checkoutStatement(java.sql.Connection physicalConnection,
java.lang.reflect.Method stmtProducingMethod,
java.lang.Object[] args) |
void |
close() |
void |
closeAll(java.sql.Connection pcon) |
java.lang.String |
dumpStatementCacheStatus() |
int |
getNumConnectionsWithCachedStatements() |
int |
getNumStatements() |
int |
getNumStatementsCheckedOut() |
int |
getStatementDestroyerNumConnectionsInUse() |
int |
getStatementDestroyerNumConnectionsWithDeferredDestroyStatements() |
int |
getStatementDestroyerNumDeferredDestroyStatements() |
java.lang.Boolean |
inUse(java.sql.Connection physicalConnection) |
boolean |
isClosed() |
boolean |
tryMarkConnectionInUse(java.sql.Connection physicalConnection) |
void |
unmarkConnectionInUse(java.sql.Connection physicalConnection) |
void |
waitMarkConnectionInUse(java.sql.Connection physicalConnection) |
public GooGooStatementCache(com.mchange.v2.async.AsynchronousRunner blockingTaskAsyncRunner,
com.mchange.v2.async.AsynchronousRunner deferredStatementDestroyer)
public int getNumStatements()
public int getNumStatementsCheckedOut()
public int getNumConnectionsWithCachedStatements()
public java.lang.String dumpStatementCacheStatus()
public void waitMarkConnectionInUse(java.sql.Connection physicalConnection)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic boolean tryMarkConnectionInUse(java.sql.Connection physicalConnection)
public void unmarkConnectionInUse(java.sql.Connection physicalConnection)
public java.lang.Boolean inUse(java.sql.Connection physicalConnection)
public int getStatementDestroyerNumConnectionsInUse()
public int getStatementDestroyerNumConnectionsWithDeferredDestroyStatements()
public int getStatementDestroyerNumDeferredDestroyStatements()
public java.lang.Object checkoutStatement(java.sql.Connection physicalConnection,
java.lang.reflect.Method stmtProducingMethod,
java.lang.Object[] args)
throws java.sql.SQLException,
com.mchange.v2.util.ResourceClosedException
java.sql.SQLExceptioncom.mchange.v2.util.ResourceClosedExceptionpublic void checkinStatement(java.lang.Object pstmt)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void checkinAll(java.sql.Connection pcon)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void closeAll(java.sql.Connection pcon)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void close()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean isClosed()