public final class WatchStats extends Object
Modifier and Type | Field and Description |
---|---|
static WatchStats |
NONE
Stats that have no watchers attached.
|
Modifier and Type | Method and Description |
---|---|
WatchStats |
addMode(WatcherMode mode)
Compute stats after given mode attached to node.
|
boolean |
hasMode(WatcherMode mode)
Check whether given mode is attached to this node.
|
WatchStats |
removeMode(WatcherMode mode)
Compute stats after given mode removed from node.
|
public static final WatchStats NONE
This could be used as start point to compute new stats using addMode(WatcherMode)
.
public WatchStats addMode(WatcherMode mode)
mode
- watcher modepublic WatchStats removeMode(WatcherMode mode)
mode
- watcher modepublic boolean hasMode(WatcherMode mode)
mode
- watcher modeCopyright © 2008–2025 The Apache Software Foundation. All rights reserved.