public final class CacheMonitor
extends java.lang.Object
PersistentDataStoreBuilder.cacheMonitor(CacheMonitor)
Modifier and Type | Class and Description |
---|---|
static class |
CacheMonitor.CacheStats
A snapshot of cache statistics.
|
Constructor and Description |
---|
CacheMonitor()
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
CacheMonitor.CacheStats |
getCacheStats()
Queries the current cache statistics.
|
void |
setSource(java.util.concurrent.Callable<CacheMonitor.CacheStats> source)
Deprecated.
Referencing this method directly is deprecated. In a future version, it will
only be visible to SDK implementation code.
|
@Deprecated public void setSource(java.util.concurrent.Callable<CacheMonitor.CacheStats> source)
source
- provided by an internal SDK componentpublic CacheMonitor.CacheStats getCacheStats()
CacheMonitor.CacheStats
instance, or null if not available