public interface CuratorCacheAccessor
Modifier and Type | Method and Description |
---|---|
Optional<ChildData> |
get(String path)
Return an entry from storage
|
static Predicate<ChildData> |
parentPathFilter(String parentPath)
Filter for a ChildData stream.
|
int |
size()
Return the current number of entries in storage
|
Stream<ChildData> |
stream()
Return a stream over the storage entries.
|
Optional<ChildData> get(String path)
path
- path to getempty()
int size()
Stream<ChildData> stream()
ConcurrentHashMap.entrySet()
static Predicate<ChildData> parentPathFilter(String parentPath)
CuratorCache cache = ...
cache.stream().filter(parentPathFilter(root))... // etc
parentPath
- the parent path to filter onCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.