Class SetDataOperation
java.lang.Object
org.apache.camel.component.zookeeper.operations.ZooKeeperOperation<byte[]>
org.apache.camel.component.zookeeper.operations.SetDataOperation
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.-
Field Summary
Fields inherited from class org.apache.camel.component.zookeeper.operations.ZooKeeperOperation
connection, CONSTRUCTOR_ARGS, LOG, node, result, waitingThreads -
Constructor Summary
ConstructorsConstructorDescriptionSetDataOperation(org.apache.zookeeper.ZooKeeper connection, String node, byte[] data) -
Method Summary
Modifier and TypeMethodDescriptionOperationResult<byte[]> Gets the result of this zookeeper operation, i.e. some data and the associated node statsvoidsetVersion(int version) Methods inherited from class org.apache.camel.component.zookeeper.operations.ZooKeeperOperation
cancel, get, get, getNode, isCancelled, isDone, shouldProduceExchange
-
Constructor Details
-
SetDataOperation
-
-
Method Details
-
getResult
Description copied from class:ZooKeeperOperationGets the result of this zookeeper operation, i.e. some data and the associated node stats- Specified by:
getResultin classZooKeeperOperation<byte[]>
-
setVersion
public void setVersion(int version) -
createCopy
- Overrides:
createCopyin classZooKeeperOperation<byte[]>- Throws:
Exception
-