Codota Logo
DBLeasedSession.ping
Code IndexAdd Codota to your IDE (free)

How to use
ping
method
in
org.jetbrains.dekaf.core.DBLeasedSession

Best Java code snippets using org.jetbrains.dekaf.core.DBLeasedSession.ping (Showing top 3 results out of 315)

origin: JetBrains/dekaf

@Override
public long ping() {
 checkIsNotClosed();
 return myOriginalSession.ping();
}
origin: JetBrains/dekaf

@Test
public void leaseSession_basic() {
 final DBLeasedSession session = myFacade.leaseSession();
 assertThat(session.isClosed()).isFalse();
 session.ping();
 session.close();
 assertThat(session.isClosed()).isTrue();
}
origin: JetBrains/dekaf

@Test
public void ping() {
 assert DB != null;
 DB.connect();
 final DBLeasedSession session = DB.leaseSession();
 session.ping();
 session.close();
 DB.disconnect();
}
org.jetbrains.dekaf.coreDBLeasedSessionping

Javadoc

Checks whether the session is really alive.

If the check is successful, just returns the ping duration.

If the check failed, closes the session and throws an exception.

Popular methods of DBLeasedSession

  • beginTransaction
  • close
    Closes the session. When session is already closed, just does nothing.
  • commit
  • rollback
  • command
  • isClosed
    Check whether the session is closed.
  • isInTransaction
  • getSpecificService
  • inTransaction
  • query
  • script
  • script

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • getSystemService (Context)
  • onRequestPermissionsResult (Fragment)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • 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