public interface CacheStatisticsCollector extends CacheStatisticsProvider
RedisCache
operations such as
hits & misses.Modifier and Type | Method and Description |
---|---|
static CacheStatisticsCollector |
create() |
default void |
incDeletes(String cacheName)
Increase the counter for delete operations of the given cache.
|
void |
incDeletesBy(String cacheName,
int value)
Increase the counter for delete operations of the given cache by the given value.
|
void |
incGets(String cacheName)
Increase the counter for get operations of the given cache.
|
void |
incHits(String cacheName)
Increase the counter for get operations with result of the given cache.
|
void |
incLockTime(String cacheName,
long durationNS)
Increase the gauge for sync lock duration of the cache by the given nanoseconds.
|
void |
incMisses(String cacheName)
Increase the counter for get operations without result of the given cache.
|
void |
incPuts(String cacheName)
Increase the counter for put operations of the given cache.
|
static CacheStatisticsCollector |
none() |
void |
reset(String cacheName)
Reset the all counters and gauges of for the given cache.
|
getCacheStatistics
void incPuts(String cacheName)
cacheName
- must not be null.void incGets(String cacheName)
cacheName
- must not be null.void incHits(String cacheName)
cacheName
- must not be null.void incMisses(String cacheName)
cacheName
- must not be null.default void incDeletes(String cacheName)
cacheName
- must not be null.void incDeletesBy(String cacheName, int value)
cacheName
- must not be null.void incLockTime(String cacheName, long durationNS)
cacheName
- must not be null.void reset(String cacheName)
cacheName
- must not be null.static CacheStatisticsCollector none()
CacheStatisticsCollector
that performs no action.static CacheStatisticsCollector create()
CacheStatisticsCollector
implementation.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.