Class GooGooStatementCache

java.lang.Object
com.mchange.v2.c3p0.stmt.GooGooStatementCache
Direct Known Subclasses:
DoubleMaxStatementCache, GlobalMaxOnlyStatementCache, PerConnectionMaxOnlyStatementCache

public abstract class GooGooStatementCache extends Object
  • 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

      public String dumpStatementCacheStatus()
    • waitMarkConnectionInUse

      public void waitMarkConnectionInUse(Connection physicalConnection) throws InterruptedException
      Throws:
      InterruptedException
    • tryMarkConnectionInUse

      public boolean tryMarkConnectionInUse(Connection physicalConnection)
    • unmarkConnectionInUse

      public void unmarkConnectionInUse(Connection physicalConnection)
    • inUse

      public Boolean inUse(Connection physicalConnection)
    • 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

      public void checkinStatement(Object pstmt) throws SQLException
      Throws:
      SQLException
    • checkinAll

      public void checkinAll(Connection pcon) throws SQLException
      Throws:
      SQLException
    • closeAll

      public void closeAll(Connection pcon) throws SQLException
      Throws:
      SQLException
    • close

      public void close() throws SQLException
      Throws:
      SQLException
    • isClosed

      public boolean isClosed()