public class SetDataOperation extends ZooKeeperOperation<byte[]>
SetDataOperation
sets the content of a ZooKeeper node. An optional version
may be specified that the node must currently have for the operation to succeed.ZooKeeper#setData(String, byte[], int)}
connection, CONSTRUCTOR_ARGS, LOG, node, result, waitingThreads
Constructor and Description |
---|
SetDataOperation(org.apache.zookeeper.ZooKeeper connection,
String node,
byte[] data) |
Modifier and Type | Method and Description |
---|---|
ZooKeeperOperation<?> |
createCopy() |
OperationResult<byte[]> |
getResult()
Gets the result of this zookeeper operation, i.e.
|
void |
setVersion(int version) |
cancel, get, get, getNode, isCancelled, isDone, shouldProduceExchange
public SetDataOperation(org.apache.zookeeper.ZooKeeper connection, String node, byte[] data)
public OperationResult<byte[]> getResult()
ZooKeeperOperation
getResult
in class ZooKeeperOperation<byte[]>
public void setVersion(int version)
public ZooKeeperOperation<?> createCopy() throws Exception
createCopy
in class ZooKeeperOperation<byte[]>
Exception
Apache Camel