Codota Logo
BoneCP.isConnectionHandleAlive
Code IndexAdd Codota 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)

  • Common ways to obtain BoneCP
private void myMethod () {
BoneCP b =
  • Codota IconBoneCPConfig config;new BoneCP(config)
  • Smart code suggestions by Codota
}
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
  • startActivity (Activity)
  • orElseThrow (Optional)
  • runOnUiThread (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • String (java.lang)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Join (org.hibernate.mapping)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now