ZKCuratorManager.SafeTransaction (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.util.curator, class: ZKCuratorManager, class: SafeTransaction

Package org.apache.hadoop.util.curator

# Class ZKCuratorManager.SafeTransaction

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

  Modifier and Type
  Method
  Description
  `void`
  `commit()`
  `void`
  `create(String path, byte[] data, List<org.apache.zookeeper.data.ACL> acl, org.apache.zookeeper.CreateMode mode)`
  `void`
  `delete(String path)`
  `void`
  `setData(String path, byte[] data, int version)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### commit

    public void commit() throws Exception
    Throws:
      `Exception`

  - ### create

    public void create(String path, byte[] data, List<org.apache.zookeeper.data.ACL> acl, org.apache.zookeeper.CreateMode mode) throws Exception
    Throws:
      `Exception`

  - ### delete

    public void delete(String path) throws Exception
    Throws:
      `Exception`

  - ### setData

    public void setData(String path, byte[] data, int version) throws Exception
    Throws:
      `Exception`