A B C D E F G H I L M N O P R S T V W 

A

AbstractCache<K,V> - Class in net.tribe7.common.cache
This class provides a skeletal implementation of the Cache interface to minimize the effort required to implement this interface.
AbstractCache() - Constructor for class net.tribe7.common.cache.AbstractCache
Constructor for use by subclasses.
AbstractCache.SimpleStatsCounter - Class in net.tribe7.common.cache
A thread-safe AbstractCache.StatsCounter implementation for use by Cache implementors.
AbstractCache.SimpleStatsCounter() - Constructor for class net.tribe7.common.cache.AbstractCache.SimpleStatsCounter
Constructs an instance with all counts initialized to zero.
AbstractCache.StatsCounter - Interface in net.tribe7.common.cache
Accumulates statistics during the operation of a Cache for presentation by Cache.stats().
AbstractLoadingCache<K,V> - Class in net.tribe7.common.cache
This class provides a skeletal implementation of the Cache interface to minimize the effort required to implement this interface.
AbstractLoadingCache() - Constructor for class net.tribe7.common.cache.AbstractLoadingCache
Constructor for use by subclasses.
apply(K) - Method in class net.tribe7.common.cache.AbstractLoadingCache
 
apply(K) - Method in class net.tribe7.common.cache.ForwardingLoadingCache
 
apply(K) - Method in interface net.tribe7.common.cache.LoadingCache
Deprecated.
Provided to satisfy the Function interface; use LoadingCache.get(K) or LoadingCache.getUnchecked(K) instead.
asMap() - Method in class net.tribe7.common.cache.AbstractCache
 
asMap() - Method in interface net.tribe7.common.cache.Cache
Returns a view of the entries stored in this cache as a thread-safe map.
asMap() - Method in class net.tribe7.common.cache.ForwardingCache
 
asMap() - Method in interface net.tribe7.common.cache.LoadingCache
Returns a view of the entries stored in this cache as a thread-safe map.
asynchronous(RemovalListener<K, V>, Executor) - Static method in class net.tribe7.common.cache.RemovalListeners
Returns a RemovalListener which processes all eviction notifications using executor.
averageLoadPenalty() - Method in class net.tribe7.common.cache.CacheStats
Returns the average time spent loading new values.

B

build(CacheLoader<? super K1, V1>) - Method in class net.tribe7.common.cache.CacheBuilder
Builds a cache, which either returns an already-loaded value for a given key or atomically computes or retrieves it using the supplied CacheLoader.
build() - Method in class net.tribe7.common.cache.CacheBuilder
Builds a cache which does not automatically load values when keys are requested.

C

Cache<K,V> - Interface in net.tribe7.common.cache
A semi-persistent mapping from keys to values.
CacheBuilder<K,V> - Class in net.tribe7.common.cache
A builder of LoadingCache and Cache instances having any combination of the following features: automatic loading of entries into the cache least-recently-used eviction when a maximum size is exceeded time-based expiration of entries, measured since last access or last write keys automatically wrapped in weak references values automatically wrapped in weak or soft references notification of evicted (or otherwise removed) entries accumulation of cache access statistics
CacheBuilderSpec - Class in net.tribe7.common.cache
A specification of a CacheBuilder configuration.
CacheLoader<K,V> - Class in net.tribe7.common.cache
Computes or retrieves values, based on a key, for use in populating a LoadingCache.
CacheLoader() - Constructor for class net.tribe7.common.cache.CacheLoader
Constructor for use by subclasses.
CacheLoader.InvalidCacheLoadException - Exception in net.tribe7.common.cache
Thrown to indicate that an invalid response was returned from a call to CacheLoader.
CacheLoader.InvalidCacheLoadException(String) - Constructor for exception net.tribe7.common.cache.CacheLoader.InvalidCacheLoadException
 
CacheStats - Class in net.tribe7.common.cache
Statistics about the performance of a Cache.
CacheStats(long, long, long, long, long, long) - Constructor for class net.tribe7.common.cache.CacheStats
Constructs a new CacheStats instance.
cleanUp() - Method in class net.tribe7.common.cache.AbstractCache
 
cleanUp() - Method in interface net.tribe7.common.cache.Cache
Performs any pending maintenance operations needed by the cache.
cleanUp() - Method in class net.tribe7.common.cache.ForwardingCache
 
concurrencyLevel(int) - Method in class net.tribe7.common.cache.CacheBuilder
Guides the allowed concurrency among update operations.

D

delegate() - Method in class net.tribe7.common.cache.ForwardingCache
 
delegate() - Method in class net.tribe7.common.cache.ForwardingCache.SimpleForwardingCache
 
delegate() - Method in class net.tribe7.common.cache.ForwardingLoadingCache
 
delegate() - Method in class net.tribe7.common.cache.ForwardingLoadingCache.SimpleForwardingLoadingCache
 
disableCaching() - Static method in class net.tribe7.common.cache.CacheBuilderSpec
Returns a CacheBuilderSpec that will prevent caching.

E

equals(Object) - Method in class net.tribe7.common.cache.CacheBuilderSpec
 
equals(Object) - Method in class net.tribe7.common.cache.CacheStats
 
equals(Object) - Method in class net.tribe7.common.cache.RemovalNotification
 
evictionCount() - Method in class net.tribe7.common.cache.CacheStats
Returns the number of times an entry has been evicted.
expireAfterAccess(long, TimeUnit) - Method in class net.tribe7.common.cache.CacheBuilder
Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, the most recent replacement of its value, or its last access.
expireAfterWrite(long, TimeUnit) - Method in class net.tribe7.common.cache.CacheBuilder
Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.

F

ForwardingCache<K,V> - Class in net.tribe7.common.cache
A cache which forwards all its method calls to another cache.
ForwardingCache() - Constructor for class net.tribe7.common.cache.ForwardingCache
Constructor for use by subclasses.
ForwardingCache.SimpleForwardingCache<K,V> - Class in net.tribe7.common.cache
A simplified version of ForwardingCache where subclasses can pass in an already constructed Cache as the delegete.
ForwardingCache.SimpleForwardingCache(Cache<K, V>) - Constructor for class net.tribe7.common.cache.ForwardingCache.SimpleForwardingCache
 
ForwardingLoadingCache<K,V> - Class in net.tribe7.common.cache
A cache which forwards all its method calls to another cache.
ForwardingLoadingCache() - Constructor for class net.tribe7.common.cache.ForwardingLoadingCache
Constructor for use by subclasses.
ForwardingLoadingCache.SimpleForwardingLoadingCache<K,V> - Class in net.tribe7.common.cache
A simplified version of ForwardingLoadingCache where subclasses can pass in an already constructed LoadingCache as the delegete.
ForwardingLoadingCache.SimpleForwardingLoadingCache(LoadingCache<K, V>) - Constructor for class net.tribe7.common.cache.ForwardingLoadingCache.SimpleForwardingLoadingCache
 
from(CacheBuilderSpec) - Static method in class net.tribe7.common.cache.CacheBuilder
Constructs a new CacheBuilder instance with the settings specified in spec.
from(String) - Static method in class net.tribe7.common.cache.CacheBuilder
Constructs a new CacheBuilder instance with the settings specified in spec.
from(Function<K, V>) - Static method in class net.tribe7.common.cache.CacheLoader
Returns a cache loader based on an existing function instance.
from(Supplier<V>) - Static method in class net.tribe7.common.cache.CacheLoader
Returns a cache loader based on an existing supplier instance.

G

get(K, Callable<? extends V>) - Method in class net.tribe7.common.cache.AbstractCache
 
get(K, Callable<? extends V>) - Method in interface net.tribe7.common.cache.Cache
Returns the value associated with key in this cache, obtaining that value from valueLoader if necessary.
get(K, Callable<? extends V>) - Method in class net.tribe7.common.cache.ForwardingCache
 
get(K) - Method in class net.tribe7.common.cache.ForwardingLoadingCache
 
get(K) - Method in interface net.tribe7.common.cache.LoadingCache
Returns the value associated with key in this cache, first loading that value if necessary.
getAll(Iterable<? extends K>) - Method in class net.tribe7.common.cache.AbstractLoadingCache
 
getAll(Iterable<? extends K>) - Method in class net.tribe7.common.cache.ForwardingLoadingCache
 
getAll(Iterable<? extends K>) - Method in interface net.tribe7.common.cache.LoadingCache
Returns a map of the values associated with keys, creating or retrieving those values if necessary.
getAllPresent(Iterable<?>) - Method in class net.tribe7.common.cache.AbstractCache
This implementation of getAllPresent lacks any insight into the internal cache data structure, and is thus forced to return the query keys instead of the cached keys.
getAllPresent(Iterable<?>) - Method in interface net.tribe7.common.cache.Cache
Returns a map of the values associated with keys in this cache.
getAllPresent(Iterable<?>) - Method in class net.tribe7.common.cache.ForwardingCache
 
getCause() - Method in class net.tribe7.common.cache.RemovalNotification
Returns the cause for which the entry was removed.
getIfPresent(Object) - Method in interface net.tribe7.common.cache.Cache
Returns the value associated with key in this cache, or null if there is no cached value for key.
getIfPresent(Object) - Method in class net.tribe7.common.cache.ForwardingCache
 
getKey() - Method in class net.tribe7.common.cache.RemovalNotification
 
getUnchecked(K) - Method in class net.tribe7.common.cache.AbstractLoadingCache
 
getUnchecked(K) - Method in class net.tribe7.common.cache.ForwardingLoadingCache
 
getUnchecked(K) - Method in interface net.tribe7.common.cache.LoadingCache
Returns the value associated with key in this cache, first loading that value if necessary.
getValue() - Method in class net.tribe7.common.cache.RemovalNotification
 

H

hashCode() - Method in class net.tribe7.common.cache.CacheBuilderSpec
 
hashCode() - Method in class net.tribe7.common.cache.CacheStats
 
hashCode() - Method in class net.tribe7.common.cache.RemovalNotification
 
hitCount() - Method in class net.tribe7.common.cache.CacheStats
Returns the number of times Cache lookup methods have returned a cached value.
hitRate() - Method in class net.tribe7.common.cache.CacheStats
Returns the ratio of cache requests which were hits.

I

incrementBy(AbstractCache.StatsCounter) - Method in class net.tribe7.common.cache.AbstractCache.SimpleStatsCounter
Increments all counters by the values in other.
initialCapacity(int) - Method in class net.tribe7.common.cache.CacheBuilder
Sets the minimum total size for the internal hash tables.
invalidate(Object) - Method in class net.tribe7.common.cache.AbstractCache
 
invalidate(Object) - Method in interface net.tribe7.common.cache.Cache
Discards any cached value for key key.
invalidate(Object) - Method in class net.tribe7.common.cache.ForwardingCache
 
invalidateAll(Iterable<?>) - Method in class net.tribe7.common.cache.AbstractCache
 
invalidateAll() - Method in class net.tribe7.common.cache.AbstractCache
 
invalidateAll(Iterable<?>) - Method in interface net.tribe7.common.cache.Cache
Discards any cached values for keys keys.
invalidateAll() - Method in interface net.tribe7.common.cache.Cache
Discards all entries in the cache.
invalidateAll(Iterable<?>) - Method in class net.tribe7.common.cache.ForwardingCache
 
invalidateAll() - Method in class net.tribe7.common.cache.ForwardingCache
 

L

load(K) - Method in class net.tribe7.common.cache.CacheLoader
Computes or retrieves the value corresponding to key.
loadAll(Iterable<? extends K>) - Method in class net.tribe7.common.cache.CacheLoader
Computes or retrieves the values corresponding to keys.
loadCount() - Method in class net.tribe7.common.cache.CacheStats
Returns the total number of times that Cache lookup methods attempted to load new values.
loadExceptionCount() - Method in class net.tribe7.common.cache.CacheStats
Returns the number of times Cache lookup methods threw an exception while loading a new value.
loadExceptionRate() - Method in class net.tribe7.common.cache.CacheStats
Returns the ratio of cache loading attempts which threw exceptions.
LoadingCache<K,V> - Interface in net.tribe7.common.cache
A semi-persistent mapping from keys to values.
loadSuccessCount() - Method in class net.tribe7.common.cache.CacheStats
Returns the number of times Cache lookup methods have successfully loaded a new value.

M

maximumSize(long) - Method in class net.tribe7.common.cache.CacheBuilder
Specifies the maximum number of entries the cache may contain.
maximumWeight(long) - Method in class net.tribe7.common.cache.CacheBuilder
Specifies the maximum weight of entries the cache may contain.
minus(CacheStats) - Method in class net.tribe7.common.cache.CacheStats
Returns a new CacheStats representing the difference between this CacheStats and other.
missCount() - Method in class net.tribe7.common.cache.CacheStats
Returns the number of times Cache lookup methods have returned an uncached (newly loaded) value, or null.
missRate() - Method in class net.tribe7.common.cache.CacheStats
Returns the ratio of cache requests which were misses.

N

net.tribe7.common.cache - package net.tribe7.common.cache
This package contains caching utilities.
newBuilder() - Static method in class net.tribe7.common.cache.CacheBuilder
Constructs a new CacheBuilder instance with default settings, including strong keys, strong values, and no automatic eviction of any kind.

O

onRemoval(RemovalNotification<K, V>) - Method in interface net.tribe7.common.cache.RemovalListener
Notifies the listener that a removal occurred at some point in the past.

P

parse(String) - Static method in class net.tribe7.common.cache.CacheBuilderSpec
Creates a CacheBuilderSpec from a string.
plus(CacheStats) - Method in class net.tribe7.common.cache.CacheStats
Returns a new CacheStats representing the sum of this CacheStats and other.
put(K, V) - Method in class net.tribe7.common.cache.AbstractCache
 
put(K, V) - Method in interface net.tribe7.common.cache.Cache
Associates value with key in this cache.
put(K, V) - Method in class net.tribe7.common.cache.ForwardingCache
 
putAll(Map<? extends K, ? extends V>) - Method in class net.tribe7.common.cache.AbstractCache
 
putAll(Map<? extends K, ? extends V>) - Method in interface net.tribe7.common.cache.Cache
Copies all of the mappings from the specified map to the cache.
putAll(Map<? extends K, ? extends V>) - Method in class net.tribe7.common.cache.ForwardingCache
 

R

recordEviction() - Method in class net.tribe7.common.cache.AbstractCache.SimpleStatsCounter
 
recordEviction() - Method in interface net.tribe7.common.cache.AbstractCache.StatsCounter
Records the eviction of an entry from the cache.
recordHits(int) - Method in class net.tribe7.common.cache.AbstractCache.SimpleStatsCounter
 
recordHits(int) - Method in interface net.tribe7.common.cache.AbstractCache.StatsCounter
Records cache hits.
recordLoadException(long) - Method in class net.tribe7.common.cache.AbstractCache.SimpleStatsCounter
 
recordLoadException(long) - Method in interface net.tribe7.common.cache.AbstractCache.StatsCounter
Records the failed load of a new entry.
recordLoadSuccess(long) - Method in class net.tribe7.common.cache.AbstractCache.SimpleStatsCounter
 
recordLoadSuccess(long) - Method in interface net.tribe7.common.cache.AbstractCache.StatsCounter
Records the successful load of a new entry.
recordMisses(int) - Method in class net.tribe7.common.cache.AbstractCache.SimpleStatsCounter
 
recordMisses(int) - Method in interface net.tribe7.common.cache.AbstractCache.StatsCounter
Records cache misses.
recordStats() - Method in class net.tribe7.common.cache.CacheBuilder
Enable the accumulation of CacheStats during the operation of the cache.
refresh(K) - Method in class net.tribe7.common.cache.AbstractLoadingCache
 
refresh(K) - Method in class net.tribe7.common.cache.ForwardingLoadingCache
 
refresh(K) - Method in interface net.tribe7.common.cache.LoadingCache
Loads a new value for key key, possibly asynchronously.
refreshAfterWrite(long, TimeUnit) - Method in class net.tribe7.common.cache.CacheBuilder
Specifies that active entries are eligible for automatic refresh once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.
reload(K, V) - Method in class net.tribe7.common.cache.CacheLoader
Computes or retrieves a replacement value corresponding to an already-cached key.
RemovalCause - Enum in net.tribe7.common.cache
The reason why a cached entry was removed.
removalListener(RemovalListener<? super K1, ? super V1>) - Method in class net.tribe7.common.cache.CacheBuilder
Specifies a listener instance that caches should notify each time an entry is removed for any reason.
RemovalListener<K,V> - Interface in net.tribe7.common.cache
An object that can receive a notification when an entry is removed from a cache.
RemovalListeners - Class in net.tribe7.common.cache
A collection of common removal listeners.
RemovalNotification<K,V> - Class in net.tribe7.common.cache
A notification of the removal of a single entry.
requestCount() - Method in class net.tribe7.common.cache.CacheStats
Returns the number of times Cache lookup methods have returned either a cached or uncached value.

S

setValue(V) - Method in class net.tribe7.common.cache.RemovalNotification
 
size() - Method in class net.tribe7.common.cache.AbstractCache
 
size() - Method in interface net.tribe7.common.cache.Cache
Returns the approximate number of entries in this cache.
size() - Method in class net.tribe7.common.cache.ForwardingCache
 
snapshot() - Method in class net.tribe7.common.cache.AbstractCache.SimpleStatsCounter
 
snapshot() - Method in interface net.tribe7.common.cache.AbstractCache.StatsCounter
Returns a snapshot of this counter's values.
softValues() - Method in class net.tribe7.common.cache.CacheBuilder
Specifies that each value (not key) stored in the cache should be wrapped in a SoftReference (by default, strong references are used).
stats() - Method in class net.tribe7.common.cache.AbstractCache
 
stats() - Method in interface net.tribe7.common.cache.Cache
Returns a current snapshot of this cache's cumulative statistics.
stats() - Method in class net.tribe7.common.cache.ForwardingCache
 

T

ticker(Ticker) - Method in class net.tribe7.common.cache.CacheBuilder
Specifies a nanosecond-precision time source for use in determining when entries should be expired.
toParsableString() - Method in class net.tribe7.common.cache.CacheBuilderSpec
Returns a string that can be used to parse an equivalent CacheBuilderSpec.
toString() - Method in class net.tribe7.common.cache.CacheBuilder
Returns a string representation for this CacheBuilder instance.
toString() - Method in class net.tribe7.common.cache.CacheBuilderSpec
Returns a string representation for this CacheBuilderSpec instance.
toString() - Method in class net.tribe7.common.cache.CacheStats
 
toString() - Method in class net.tribe7.common.cache.RemovalNotification
Returns a string representation of the form {key}={value}.
totalLoadTime() - Method in class net.tribe7.common.cache.CacheStats
Returns the total number of nanoseconds the cache has spent loading new values.

V

valueOf(String) - Static method in enum net.tribe7.common.cache.RemovalCause
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.tribe7.common.cache.RemovalCause
Returns an array containing the constants of this enum type, in the order they are declared.

W

wasEvicted() - Method in class net.tribe7.common.cache.RemovalNotification
Returns true if there was an automatic removal due to eviction (the cause is neither RemovalCause.EXPLICIT nor RemovalCause.REPLACED).
weakKeys() - Method in class net.tribe7.common.cache.CacheBuilder
Specifies that each key (not value) stored in the cache should be wrapped in a WeakReference (by default, strong references are used).
weakValues() - Method in class net.tribe7.common.cache.CacheBuilder
Specifies that each value (not key) stored in the cache should be wrapped in a WeakReference (by default, strong references are used).
weigh(K, V) - Method in interface net.tribe7.common.cache.Weigher
Returns the weight of a cache entry.
weigher(Weigher<? super K1, ? super V1>) - Method in class net.tribe7.common.cache.CacheBuilder
Specifies the weigher to use in determining the weight of entries.
Weigher<K,V> - Interface in net.tribe7.common.cache
Calculates the weights of cache entries.
A B C D E F G H I L M N O P R S T V W