@InterfaceAudience.Public public class Transaction extends Object
Modifier | Constructor and Description |
---|---|
protected |
Transaction(ZooKeeper zk) |
Modifier and Type | Method and Description |
---|---|
Transaction |
check(String path,
int version) |
List<OpResult> |
commit() |
void |
commit(AsyncCallback.MultiCallback cb,
Object ctx) |
Transaction |
create(String path,
byte[] data,
List<ACL> acl,
CreateMode createMode) |
Transaction |
delete(String path,
int version) |
Transaction |
setData(String path,
byte[] data,
int version) |
protected Transaction(ZooKeeper zk)
public Transaction create(String path, byte[] data, List<ACL> acl, CreateMode createMode)
public Transaction delete(String path, int version)
public Transaction check(String path, int version)
public Transaction setData(String path, byte[] data, int version)
public List<OpResult> commit() throws InterruptedException, KeeperException
InterruptedException
KeeperException
public void commit(AsyncCallback.MultiCallback cb, Object ctx)
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.