java.lang.Object
org.apache.hadoop.util.curator.ZKCuratorManager.SafeTransaction
- Enclosing class:
- ZKCuratorManager
public class ZKCuratorManager.SafeTransaction
extends Object
Use curator transactions to ensure zk-operations are performed in an all
or nothing fashion. This is equivalent to using ZooKeeper#multi.
-
Method Summary
void
void
create(String path,
byte[] data,
List<org.apache.zookeeper.data.ACL> acl,
org.apache.zookeeper.CreateMode mode)
void
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
-
create
public void create(String path,
byte[] data,
List<org.apache.zookeeper.data.ACL> acl,
org.apache.zookeeper.CreateMode mode)
throws Exception
- Throws:
Exception
-
-