Package | Description |
---|---|
org.apache.curator.framework.recipes.cache |
Modifier and Type | Method and Description |
---|---|
ChildData |
NodeCache.getCurrentData()
Deprecated.
Return the current data.
|
ChildData |
PathChildrenCache.getCurrentData(String fullPath)
Deprecated.
Return the current data for the given path.
|
ChildData |
TreeCache.getCurrentData(String fullPath)
Deprecated.
Return the current data for the given path.
|
ChildData |
TreeCacheEvent.getData() |
ChildData |
PathChildrenCacheEvent.getData() |
ChildData |
TreeCacheEvent.getOldData() |
Modifier and Type | Method and Description |
---|---|
Optional<ChildData> |
CuratorCacheAccessor.get(String path)
Return an entry from storage
|
Optional<ChildData> |
CuratorCacheStorage.get(String path)
Return an entry from storage
|
Optional<ChildData> |
CuratorCache.get(String path)
Return an entry from storage
|
Map<String,ChildData> |
TreeCache.getCurrentChildren(String fullPath)
Deprecated.
Return the current set of children at the given path, mapped by child name.
|
List<ChildData> |
PathChildrenCache.getCurrentData()
Deprecated.
Return the current data.
|
List<ChildData> |
PathChildrenCacheEvent.getInitialData()
Special purpose method.
|
Iterator<ChildData> |
TreeCache.iterator()
Deprecated.
Return an iterator over all nodes in the cache.
|
static Predicate<ChildData> |
CuratorCacheAccessor.parentPathFilter(String parentPath)
Filter for a ChildData stream.
|
Optional<ChildData> |
CuratorCacheStorage.put(ChildData data)
Add an entry to storage and return any previous entry at that path
|
Optional<ChildData> |
CuratorCacheStorage.remove(String path)
Remove the entry from storage and return any previous entry at that path
|
Stream<ChildData> |
CuratorCacheAccessor.stream()
Return a stream over the storage entries.
|
Stream<ChildData> |
CuratorCacheStorage.stream()
Return a stream over the storage entries.
|
Stream<ChildData> |
CuratorCache.stream()
Return a stream over the storage entries.
|
Modifier and Type | Method and Description |
---|---|
int |
ChildData.compareTo(ChildData rhs)
Note: this class has a natural ordering that is inconsistent with equals.
|
void |
CuratorCacheListenerBuilder.ChangeListener.event(ChildData oldNode,
ChildData node) |
void |
CuratorCacheListener.event(CuratorCacheListener.Type type,
ChildData oldData,
ChildData data)
Called when a data is created, changed or deleted.
|
Optional<ChildData> |
CuratorCacheStorage.put(ChildData data)
Add an entry to storage and return any previous entry at that path
|
Modifier and Type | Method and Description |
---|---|
CuratorCacheListenerBuilder |
CuratorCacheListenerBuilder.forCreates(Consumer<ChildData> listener)
Add a listener only for
CuratorCacheListener.Type.NODE_CREATED |
CuratorCacheListenerBuilder |
CuratorCacheListenerBuilder.forDeletes(Consumer<ChildData> listener)
Add a listener only for
CuratorCacheListener.Type.NODE_DELETED |
Constructor and Description |
---|
PathChildrenCacheEvent(PathChildrenCacheEvent.Type type,
ChildData data) |
TreeCacheEvent(TreeCacheEvent.Type type,
ChildData data) |
TreeCacheEvent(TreeCacheEvent.Type type,
ChildData data,
ChildData oldData) |
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.