Package | Description |
---|---|
com.google.common.cache |
This package contains caching utilities.
|
Modifier and Type | Class and Description |
---|---|
(package private) static class |
CacheBuilder.NullListener |
Modifier and Type | Field and Description |
---|---|
(package private) RemovalListener<K,V> |
LocalCache.removalListener
A listener that is invoked when an entry is removed due to expiration or garbage collection of
soft/weak entries.
|
(package private) RemovalListener<? super K,? super V> |
LocalCache.ManualSerializationProxy.removalListener |
(package private) RemovalListener<? super K,? super V> |
CacheBuilder.removalListener |
Modifier and Type | Method and Description |
---|---|
static <K,V> RemovalListener<K,V> |
RemovalListeners.asynchronous(RemovalListener<K,V> listener,
java.util.concurrent.Executor executor)
Returns a
RemovalListener which processes all eviction
notifications using executor . |
(package private) <K1 extends K,V1 extends V> |
CacheBuilder.getRemovalListener() |
Modifier and Type | Method and Description |
---|---|
static <K,V> RemovalListener<K,V> |
RemovalListeners.asynchronous(RemovalListener<K,V> listener,
java.util.concurrent.Executor executor)
Returns a
RemovalListener which processes all eviction
notifications using executor . |
<K1 extends K,V1 extends V> |
CacheBuilder.removalListener(RemovalListener<? super K1,? super V1> listener)
Specifies a listener instance that caches should notify each time an entry is removed for any
reason.
|
Constructor and Description |
---|
ManualSerializationProxy(LocalCache.Strength keyStrength,
LocalCache.Strength valueStrength,
Equivalence<java.lang.Object> keyEquivalence,
Equivalence<java.lang.Object> valueEquivalence,
long expireAfterWriteNanos,
long expireAfterAccessNanos,
long maxWeight,
Weigher<K,V> weigher,
int concurrencyLevel,
RemovalListener<? super K,? super V> removalListener,
Ticker ticker,
CacheLoader<? super K,V> loader) |