com.twitter.common.zookeeper
Interface ZooKeeperNode.NodeDeserializer<T>

Type Parameters:
T - the type of data associated with this node
Enclosing class:
ZooKeeperNode<T>

public static interface ZooKeeperNode.NodeDeserializer<T>

Interface for defining zookeeper node data deserialization.


Method Summary
 T deserialize(byte[] data, org.apache.zookeeper.data.Stat stat)
           
 

Method Detail

deserialize

T deserialize(byte[] data,
              org.apache.zookeeper.data.Stat stat)
Parameters:
data - the byte array returned from ZooKeeper when a watch is triggered.
stat - a ZooKeeper Stat object. Populated by ZooKeeper#getData(String, boolean, Stat).