org.I0Itec.zkclient
Interface DataUpdater<T>

Type Parameters:
T -

public interface DataUpdater<T>

Updates the data of a znode. This is used together with ZkClient.updateDataSerialized(String, DataUpdater).


Method Summary
 T update(T currentData)
          Updates the current data of a znode.
 

Method Detail

update

T update(T currentData)
Updates the current data of a znode.

Parameters:
currentData - The current contents.
Returns:
the new data that should be written back to ZooKeeper.