Package org.apache.zookeeper
Class Transaction
- java.lang.Object
- 
- org.apache.zookeeper.Transaction
 
- 
 @Public public class Transaction extends Object Provides a builder style interface for doing multiple updates. This is really just a thin layer on top of Zookeeper.multi().- Since:
- 3.4.0
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedTransaction(ZooKeeper zk)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Transactioncheck(String path, int version)List<OpResult>commit()voidcommit(AsyncCallback.MultiCallback cb, Object ctx)Transactioncreate(String path, byte[] data, List<ACL> acl, CreateMode createMode)Transactiondelete(String path, int version)TransactionsetData(String path, byte[] data, int version)
 
- 
- 
- 
Constructor Detail- 
Transactionprotected Transaction(ZooKeeper zk) 
 
- 
 - 
Method Detail- 
createpublic Transaction create(String path, byte[] data, List<ACL> acl, CreateMode createMode) 
 - 
deletepublic Transaction delete(String path, int version) 
 - 
checkpublic Transaction check(String path, int version) 
 - 
setDatapublic Transaction setData(String path, byte[] data, int version) 
 - 
commitpublic List<OpResult> commit() throws InterruptedException, KeeperException - Throws:
- InterruptedException
- KeeperException
 
 - 
commitpublic void commit(AsyncCallback.MultiCallback cb, Object ctx) 
 
- 
 
-