public static class TransactionWatcher.ZooArbitrator extends Object implements TransactionWatcher.Arbitrator
Constructor and Description |
---|
ZooArbitrator() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanup(String type,
long tid) |
static void |
start(String type,
long tid) |
static void |
stop(String type,
long tid) |
boolean |
transactionAlive(String type,
long tid) |
boolean |
transactionComplete(String type,
long tid) |
public boolean transactionAlive(String type, long tid) throws Exception
transactionAlive
in interface TransactionWatcher.Arbitrator
Exception
public static void start(String type, long tid) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public static void stop(String type, long tid) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public static void cleanup(String type, long tid) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public boolean transactionComplete(String type, long tid) throws Exception
transactionComplete
in interface TransactionWatcher.Arbitrator
Exception
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.