Class TransactionWatcher

java.lang.Object
org.apache.accumulo.server.zookeeper.TransactionWatcher

public class TransactionWatcher extends Object
  • Constructor Details

  • Method Details

    • runQuietly

      public void runQuietly(String ztxBulk, long tid, Runnable task)
      Run task only if transaction is still active in zookeeper. If the tx is no longer active then that task is not run and a debug message is logged indicating the task was ignored.
    • run

      public <T> T run(String ztxBulk, long tid, Callable<T> callable) throws Exception
      Throws:
      Exception
    • isActive

      public boolean isActive(long tid)