Package | Description |
---|---|
com.github.benmanes.caffeine.cache |
This package contains caching utilities.
|
com.github.benmanes.caffeine.cache.stats |
This package contains caching statistic utilities.
|
Modifier and Type | Method and Description |
---|---|
Caffeine<K,V> |
Caffeine.recordStats(Supplier<? extends StatsCounter> statsCounterSupplier)
Enables the accumulation of
CacheStats during the operation of the cache. |
Modifier and Type | Class and Description |
---|---|
class |
ConcurrentStatsCounter
A thread-safe
StatsCounter implementation for use by Cache implementors. |
Modifier and Type | Method and Description |
---|---|
static StatsCounter |
StatsCounter.disabledStatsCounter()
Returns an accumulator that does not record any cache events.
|
static StatsCounter |
StatsCounter.guardedStatsCounter(StatsCounter statsCounter)
Returns an accumulator that suppresses and logs any exception thrown by the delegate
statsCounter.
|
Modifier and Type | Method and Description |
---|---|
static StatsCounter |
StatsCounter.guardedStatsCounter(StatsCounter statsCounter)
Returns an accumulator that suppresses and logs any exception thrown by the delegate
statsCounter.
|
void |
ConcurrentStatsCounter.incrementBy(StatsCounter other)
Increments all counters by the values in
other . |
Copyright © 2017. All rights reserved.