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

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

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

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

/** Sends a test query to the underlying connection and return true if connection is alive.
 * @return True if connection is valid, false otherwise.
 */
public boolean isConnectionAlive(){
  return this.pool.isConnectionHandleAlive(this);
}
origin: org.apache.sentry/sentry-shaded-miscellaneous

  (currentTimeInMs-connection.getConnectionLastResetInMs() >= this.idleConnectionTestPeriodInMs)) {
if (!this.pool.isConnectionHandleAlive(connection)){
  closeConnection(connection);
  continue; 
origin: org.apache.sentry/sentry-shaded-miscellaneous

(!this.poolShuttingDown 
    && connectionHandle.isPossiblyBroken()
&& !isConnectionHandleAlive(connectionHandle))){
origin: org.wisdom-framework/wisdom-jdbc-datasources

(!this.poolShuttingDown
    && connectionHandle.isPossiblyBroken()
    && !isConnectionHandleAlive(connectionHandle))) {
com.jolbox.bonecpBoneCPisConnectionHandleAlive

Javadoc

Sends a dummy statement to the server to keep the connection alive

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,
  • maybeSignalForMoreConnections,
  • obtainRawInternalConnection,
  • postDestroyConnection,
  • putConnectionBackInPartition,
  • registerUnregisterJMX,
  • unregisterDriver,
  • destroyConnection

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • getContentResolver (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top Vim plugins
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