Class PropCacheCaffeineImpl
- java.lang.Object
-
- org.apache.accumulo.server.conf.store.impl.PropCacheCaffeineImpl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PropCacheCaffeineImpl.Builder
-
Field Summary
Fields Modifier and Type Field Description static TimeUnit
BASE_TIME_UNITS
static int
EXPIRE_MIN
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable VersionedProperties
get(PropStoreKey<?> propStoreKey)
@Nullable VersionedProperties
getIfCached(PropStoreKey<?> propStoreKey)
Retrieve the version properties if present in the cache, otherwise return null.PropStoreMetrics
getMetrics()
void
remove(PropStoreKey<?> propStoreKey)
void
removeAll()
-
-
-
Field Detail
-
BASE_TIME_UNITS
public static final TimeUnit BASE_TIME_UNITS
-
EXPIRE_MIN
public static final int EXPIRE_MIN
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMetrics
public PropStoreMetrics getMetrics()
-
get
public @Nullable VersionedProperties get(PropStoreKey<?> propStoreKey)
-
remove
public void remove(PropStoreKey<?> propStoreKey)
-
getIfCached
public @Nullable VersionedProperties getIfCached(PropStoreKey<?> propStoreKey)
Retrieve the version properties if present in the cache, otherwise return null. This prevents caching the properties and should be used when properties will be updated and then committed to the backend store. The process that is updating the values may not need them for additional processing so there is no reason to store them in the cache at this time. If they are used, a normal cache get will load the property into the cache.- Parameters:
propStoreKey
- the property id- Returns:
- the version properties if cached, otherwise return null.
-
-