Interface ZNode<T>
- All Known Implementing Classes:
ZNodeImpl
public interface ZNode<T>
Abstracts a ZooKeeper node
-
Method Summary
Modifier and TypeMethodDescriptionmodel()
The node's current modelstatic <T> CompletionStage
<T> model
(AsyncStage<ZNode<T>> from) Utility that modifies an async stage of a znode into an async stage of a modelstatic <T> CompletionStage
<List<T>> models
(AsyncStage<List<ZNode<T>>> from) Utility that modifies an async stage of znodes into an async stage of modelspath()
The path of the nodeorg.apache.zookeeper.data.Stat
stat()
The node's last known stat if available
-
Method Details
-
path
ZPath path()The path of the node- Returns:
- path
-
stat
org.apache.zookeeper.data.Stat stat()The node's last known stat if available- Returns:
- stat
-
model
T model()The node's current model- Returns:
- model
-
models
Utility that modifies an async stage of znodes into an async stage of models- Parameters:
from
- original stage- Returns:
- stage of models
-
model
Utility that modifies an async stage of a znode into an async stage of a model- Parameters:
from
- original stage- Returns:
- stage of a model
-