| Package | Description |
|---|---|
| org.apache.pulsar.zookeeper |
| Modifier and Type | Class and Description |
|---|---|
static class |
Deserializers.PolicyDeserializer
Deserializes data received from Zookeeper into policies object.
|
static class |
Deserializers.StringDeserializer
Deserializes data received from ZK into Java Strings.
|
class |
ZkIsolatedBookieEnsemblePlacementPolicy |
class |
ZooKeeperDataCache<T>
Provides a generic cache for reading objects stored in zookeeper.
|
| Modifier and Type | Field and Description |
|---|---|
static ZooKeeperCache.Deserializer<Policies> |
Deserializers.POLICY_DESERIALIZER |
static ZooKeeperCache.Deserializer<String> |
Deserializers.STRING_DESERIALIZER |
| Modifier and Type | Method and Description |
|---|---|
<T> Optional<Map.Entry<T,org.apache.zookeeper.data.Stat>> |
ZooKeeperCache.getData(String path,
Watcher watcher,
ZooKeeperCache.Deserializer<T> deserializer)
Cache that implements automatic reloading on update will pass a different Watcher object to reload cache entry
automatically
|
<T> Optional<T> |
ZooKeeperCache.getData(String path,
ZooKeeperCache.Deserializer<T> deserializer)
Simple ZooKeeperCache use this method to invalidate the cache entry on watch event w/o automatic reloading the
cache
|
<T> CompletableFuture<Optional<Map.Entry<T,org.apache.zookeeper.data.Stat>>> |
ZooKeeperCache.getDataAsync(String path,
Watcher watcher,
ZooKeeperCache.Deserializer<T> deserializer) |
<T> CompletableFuture<Optional<T>> |
ZooKeeperCache.getDataAsync(String path,
ZooKeeperCache.Deserializer<T> deserializer) |
<T> Optional<Map.Entry<T,org.apache.zookeeper.data.Stat>> |
ZooKeeperCache.getEntry(String path,
ZooKeeperCache.Deserializer<T> deserializer) |
<T> CompletableFuture<Optional<Map.Entry<T,org.apache.zookeeper.data.Stat>>> |
ZooKeeperCache.getEntryAsync(String path,
ZooKeeperCache.Deserializer<T> deserializer) |
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.