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, shouldProduceExchangepublic SetDataOperation(org.apache.zookeeper.ZooKeeper connection,
String node,
byte[] data)
public OperationResult<byte[]> getResult()
ZooKeeperOperationgetResult in class ZooKeeperOperation<byte[]>public void setVersion(int version)
public ZooKeeperOperation<?> createCopy() throws Exception
createCopy in class ZooKeeperOperation<byte[]>ExceptionApache Camel