org.apache.camel.component.zookeeper.operations
Class SetDataOperation

java.lang.Object
  extended by org.apache.camel.component.zookeeper.operations.ZooKeeperOperation<byte[]>
      extended by org.apache.camel.component.zookeeper.operations.SetDataOperation

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.

See Also:
ZooKeeper#setData(String, byte[], int)}

Field Summary
 
Fields inherited from class org.apache.camel.component.zookeeper.operations.ZooKeeperOperation
connection, CONSTRUCTOR_ARGS, LOG, node, result, waitingThreads
 
Constructor Summary
SetDataOperation(org.apache.zookeeper.ZooKeeper connection, String node, byte[] data)
           
 
Method Summary
 ZooKeeperOperation<?> createCopy()
           
 OperationResult<byte[]> getResult()
          Gets the result of this zookeeper operation, i.e.
 void setVersion(int version)
           
 
Methods inherited from class org.apache.camel.component.zookeeper.operations.ZooKeeperOperation
cancel, get, get, getNode, isCancelled, isDone, shouldProduceExchange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetDataOperation

public SetDataOperation(org.apache.zookeeper.ZooKeeper connection,
                        String node,
                        byte[] data)
Method Detail

getResult

public OperationResult<byte[]> getResult()
Description copied from class: ZooKeeperOperation
Gets the result of this zookeeper operation, i.e. some data and the associated node stats

Specified by:
getResult in class ZooKeeperOperation<byte[]>

setVersion

public void setVersion(int version)

createCopy

public ZooKeeperOperation<?> createCopy()
                                 throws Exception
Overrides:
createCopy in class ZooKeeperOperation<byte[]>
Throws:
Exception


Apache Camel