Package | Description |
---|---|
com.google.common.cache |
This package contains caching utilities.
|
Modifier and Type | Class and Description |
---|---|
static class |
AbstractCache.SimpleStatsCounter
A thread-safe
AbstractCache.StatsCounter implementation for use by Cache implementors. |
Modifier and Type | Field and Description |
---|---|
(package private) AbstractCache.StatsCounter |
LocalCache.globalStatsCounter
Accumulates global cache statistics.
|
(package private) AbstractCache.StatsCounter |
LocalCache.Segment.statsCounter
Accumulates cache statistics.
|
Modifier and Type | Field and Description |
---|---|
(package private) static Supplier<AbstractCache.StatsCounter> |
CacheBuilder.CACHE_STATS_COUNTER |
(package private) static Supplier<? extends AbstractCache.StatsCounter> |
CacheBuilder.NULL_STATS_COUNTER |
(package private) Supplier<? extends AbstractCache.StatsCounter> |
CacheBuilder.statsCounterSupplier |
Modifier and Type | Method and Description |
---|---|
(package private) Supplier<? extends AbstractCache.StatsCounter> |
CacheBuilder.getStatsCounterSupplier() |
Modifier and Type | Method and Description |
---|---|
(package private) LocalCache.Segment<K,V> |
LocalCache.createSegment(int initialCapacity,
long maxSegmentWeight,
AbstractCache.StatsCounter statsCounter) |
void |
AbstractCache.SimpleStatsCounter.incrementBy(AbstractCache.StatsCounter other)
Increments all counters by the values in
other . |
Constructor and Description |
---|
Segment(LocalCache<K,V> map,
int initialCapacity,
long maxSegmentWeight,
AbstractCache.StatsCounter statsCounter) |