Interface ZNode<T>
-
- All Known Implementing Classes:
ZNodeImpl
public interface ZNode<T>Abstracts a ZooKeeper node
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Tmodel()The node's current modelstatic <T> java.util.concurrent.CompletionStage<T>model(AsyncStage<ZNode<T>> from)Utility that modifies an async stage of a znode into an async stage of a modelstatic <T> java.util.concurrent.CompletionStage<java.util.List<T>>models(AsyncStage<java.util.List<ZNode<T>>> from)Utility that modifies an async stage of znodes into an async stage of modelsZPathpath()The path of the nodeorg.apache.zookeeper.data.Statstat()The node's last known stat if available
-
-
-
Method Detail
-
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
static <T> java.util.concurrent.CompletionStage<java.util.List<T>> models(AsyncStage<java.util.List<ZNode<T>>> from)
Utility that modifies an async stage of znodes into an async stage of models- Parameters:
from- original stage- Returns:
- stage of models
-
model
static <T> java.util.concurrent.CompletionStage<T> model(AsyncStage<ZNode<T>> from)
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
-
-