Class ZooPropLoader
- java.lang.Object
-
- org.apache.accumulo.server.conf.store.impl.ZooPropLoader
-
- All Implemented Interfaces:
com.github.benmanes.caffeine.cache.AsyncCacheLoader<PropStoreKey<?>,VersionedProperties>,com.github.benmanes.caffeine.cache.CacheLoader<PropStoreKey<?>,VersionedProperties>
public class ZooPropLoader extends Object implements com.github.benmanes.caffeine.cache.CacheLoader<PropStoreKey<?>,VersionedProperties>
-
-
Constructor Summary
Constructors Constructor Description ZooPropLoader(ZooReaderWriter zrw, VersionedPropCodec propCodec, PropStoreWatcher propStoreWatcher, PropStoreMetrics metrics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<? extends VersionedProperties>asyncLoad(PropStoreKey<?> propStoreKey, Executor executor)CompletableFuture<VersionedProperties>asyncReload(PropStoreKey<?> propStoreKey, VersionedProperties oldValue, Executor executor)@Nullable VersionedPropertiesload(PropStoreKey<?> propStoreKey)@Nullable VersionedPropertiesreload(PropStoreKey<?> propStoreKey, VersionedProperties oldValue)
-
-
-
Constructor Detail
-
ZooPropLoader
public ZooPropLoader(ZooReaderWriter zrw, VersionedPropCodec propCodec, PropStoreWatcher propStoreWatcher, PropStoreMetrics metrics)
-
-
Method Detail
-
load
public @Nullable VersionedProperties load(PropStoreKey<?> propStoreKey)
- Specified by:
loadin interfacecom.github.benmanes.caffeine.cache.CacheLoader<PropStoreKey<?>,VersionedProperties>
-
asyncLoad
public CompletableFuture<? extends VersionedProperties> asyncLoad(PropStoreKey<?> propStoreKey, Executor executor) throws Exception
- Specified by:
asyncLoadin interfacecom.github.benmanes.caffeine.cache.AsyncCacheLoader<PropStoreKey<?>,VersionedProperties>- Specified by:
asyncLoadin interfacecom.github.benmanes.caffeine.cache.CacheLoader<PropStoreKey<?>,VersionedProperties>- Throws:
Exception
-
asyncReload
public CompletableFuture<VersionedProperties> asyncReload(PropStoreKey<?> propStoreKey, VersionedProperties oldValue, Executor executor) throws Exception
- Specified by:
asyncReloadin interfacecom.github.benmanes.caffeine.cache.AsyncCacheLoader<PropStoreKey<?>,VersionedProperties>- Specified by:
asyncReloadin interfacecom.github.benmanes.caffeine.cache.CacheLoader<PropStoreKey<?>,VersionedProperties>- Throws:
Exception
-
reload
public @Nullable VersionedProperties reload(PropStoreKey<?> propStoreKey, VersionedProperties oldValue) throws Exception
- Specified by:
reloadin interfacecom.github.benmanes.caffeine.cache.CacheLoader<PropStoreKey<?>,VersionedProperties>- Throws:
Exception
-
-