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

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

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

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

/**
 * Releases the given connection back to the pool. This method is not intended to be called by
 * applications (hence set to protected). Call connection.close() instead which will return
 * the connection back to the pool.
 *
 * @param connection to release
 * @throws SQLException
 */
protected void releaseConnection(Connection connection) throws SQLException {
  ConnectionHandle handle = (ConnectionHandle)connection;
  // hook calls
  if (handle.getConnectionHook() != null){
    handle.getConnectionHook().onCheckIn(handle);
  }
  // release immediately or place it in a queue so that another thread will eventually close it. If we're shutting down,
  // close off the connection right away because the helper threads have gone away.
  if (!this.poolShuttingDown){
    internalReleaseConnection(handle);
  }
}
origin: org.wisdom-framework/wisdom-jdbc-datasources

/**
 * Releases the given connection back to the pool. This method is not intended to be called by
 * applications (hence set to protected). Call connection.close() instead which will return
 * the connection back to the pool.
 *
 * @param connection to release
 * @throws SQLException
 */
protected void releaseConnection(Connection connection) throws SQLException {
  ConnectionHandle handle = (ConnectionHandle) connection;
  // hook calls
  if (handle.getConnectionHook() != null) {
    handle.getConnectionHook().onCheckIn(handle);
  }
  // release immediately or place it in a queue so that another thread will eventually close it. If we're shutting down,
  // close off the connection right away because the helper threads have gone away.
  if (!this.poolShuttingDown) {
    internalReleaseConnection(handle);
  }
}
com.jolbox.bonecpBoneCPinternalReleaseConnection

Javadoc

Release a connection by placing the connection back in the pool.

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
  • isConnectionHandleAlive
    Sends a dummy statement to the server to keep the connection alive
  • getTotalFree,
  • isConnectionHandleAlive,
  • maybeSignalForMoreConnections,
  • obtainRawInternalConnection,
  • postDestroyConnection,
  • putConnectionBackInPartition,
  • registerUnregisterJMX,
  • unregisterDriver,
  • destroyConnection

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Github Copilot alternatives
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