congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AbstractTransactionManager.checkOpen
Code IndexAdd Tabnine to your IDE (free)

How to use
checkOpen
method
in
com.palantir.atlasdb.transaction.impl.AbstractTransactionManager

Best Java code snippets using com.palantir.atlasdb.transaction.impl.AbstractTransactionManager.checkOpen (Showing top 2 results out of 315)

origin: palantir/atlasdb

protected final <T, E extends Exception> T runTaskThrowOnConflict(TransactionTask<T, E> task, Transaction txn)
    throws E, TransactionFailedException {
  checkOpen();
  try {
    T ret = task.execute(txn);
    if (txn.isUncommitted()) {
      txn.commit();
    }
    return ret;
  } finally {
    // Make sure that anyone trying to retain a reference to this transaction
    // will not be able to use it.
    if (txn.isUncommitted()) {
      txn.abort();
    }
  }
}
origin: com.palantir.atlasdb/atlasdb-client

protected final <T, E extends Exception> T runTaskThrowOnConflict(TransactionTask<T, E> task, Transaction txn)
    throws E, TransactionFailedException {
  checkOpen();
  try {
    T ret = task.execute(txn);
    if (txn.isUncommitted()) {
      txn.commit();
    }
    return ret;
  } finally {
    // Make sure that anyone trying to retain a reference to this transaction
    // will not be able to use it.
    if (txn.isUncommitted()) {
      txn.abort();
    }
  }
}
com.palantir.atlasdb.transaction.implAbstractTransactionManagercheckOpen

Javadoc

Checks that the transaction manager is open.

Popular methods of AbstractTransactionManager

    Popular in Java

    • Finding current android device location
    • scheduleAtFixedRate (ScheduledExecutorService)
    • getSupportFragmentManager (FragmentActivity)
    • getContentResolver (Context)
    • ObjectMapper (com.fasterxml.jackson.databind)
      ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
    • BufferedInputStream (java.io)
      A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
    • DateFormat (java.text)
      Formats or parses dates and times.This class provides factories for obtaining instances configured f
    • Scanner (java.util)
      A parser that parses a text string of primitive types and strings with the help of regular expressio
    • Get (org.apache.hadoop.hbase.client)
      Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
    • Join (org.hibernate.mapping)
    • Best plugins for Eclipse
    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