Tabnine Logo
BoneCP.postDestroyConnection
Code IndexAdd Tabnine to your IDE (free)

How to use
postDestroyConnection
method
in
com.jolbox.bonecp.BoneCP

Best Java code snippets using com.jolbox.bonecp.BoneCP.postDestroyConnection (Showing top 6 results out of 315)

origin: org.apache.sentry/sentry-shaded-miscellaneous

  /** Closes off this connection
   * @param connection to close
   */
  protected void closeConnection(ConnectionHandle connection) {
    if (connection != null) {
      try {
        connection.internalClose();
      } catch (Throwable t) {
        logger.error("Destroy connection exception", t);
      } finally {
        this.pool.postDestroyConnection(connection);
      }
    }
}
}
origin: org.apache.sentry/sentry-shaded-miscellaneous

/**
 * Physically close off the internal connection.
 * @param conn
 */
protected void destroyConnection(ConnectionHandle conn) {
  postDestroyConnection(conn);
  conn.setInReplayMode(true); // we're dead, stop attempting to replay anything
  try {
      conn.internalClose();
  } catch (SQLException e) {
    logger.error("Error in attempting to close connection", e);
  }
}
origin: org.wisdom-framework/wisdom-jdbc-datasources

/**
 * Physically close off the internal connection.
 *
 * @param conn the connection
 */
protected void destroyConnection(ConnectionHandle conn) {
  postDestroyConnection(conn);
  // we're dead, stop attempting to replay anything
  conn.setInReplayMode(true);
  try {
    conn.internalClose();
  } catch (SQLException e) {
    LOGGER.error("Error in attempting to close connection", e);
  }
}
origin: org.apache.sentry/sentry-shaded-miscellaneous

/** Closes off this connection
 * @param connection to close
 */
protected void closeConnection(ConnectionHandle connection) {
  if (connection != null && !connection.isClosed()) {
    try {
      connection.internalClose();
    } catch (SQLException e) {
      logger.error("Destroy connection exception", e);
    } finally {
      this.pool.postDestroyConnection(connection);
      connection.getOriginatingPartition().getPoolWatchThreadSignalQueue().offer(new Object()); // item being pushed is not important.
    }
  }
}
origin: org.apache.sentry/sentry-shaded-miscellaneous

postDestroyConnection(connectionHandle);
origin: org.wisdom-framework/wisdom-jdbc-datasources

postDestroyConnection(connectionHandle);
com.jolbox.bonecpBoneCPpostDestroyConnection

Javadoc

Update counters and call hooks.

Popular methods of BoneCP

  • getConnection
  • shutdown
    Closes off this connection pool.
  • <init>
    Constructor.
  • getConfig
    Gets config object.
  • getTotalCreatedConnections
    Return total number of connections created in all partitions.
  • getTotalLeased
    Return total number of connections currently in use by an application
  • captureStackTrace
    Throw an exception to capture it so as to be able to print it out later on
  • closeStatement
  • getDbIsDown
    Returns the dbIsDown field.
  • getStatistics
    Returns a reference to the statistics class.
  • getTotalFree
    Return the number of free connections available to an application right away (excluding connections
  • internalReleaseConnection
    Release a connection by placing the connection back in the pool.
  • getTotalFree,
  • internalReleaseConnection,
  • isConnectionHandleAlive,
  • maybeSignalForMoreConnections,
  • obtainRawInternalConnection,
  • putConnectionBackInPartition,
  • registerUnregisterJMX,
  • unregisterDriver,
  • destroyConnection

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now