@Beta public abstract static class ForwardingLoadingCache.SimpleForwardingLoadingCache<K,V> extends ForwardingLoadingCache<K,V>
ForwardingLoadingCache
where subclasses can pass in an already
constructed LoadingCache
as the delegete.ForwardingLoadingCache.SimpleForwardingLoadingCache<K,V>
ForwardingCache.SimpleForwardingCache<K,V>
Modifier and Type | Field and Description |
---|---|
private LoadingCache<K,V> |
delegate |
Modifier | Constructor and Description |
---|---|
protected |
SimpleForwardingLoadingCache(LoadingCache<K,V> delegate) |
Modifier and Type | Method and Description |
---|---|
protected LoadingCache<K,V> |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
apply, get, getAll, getUnchecked, refresh
asMap, cleanUp, get, getAllPresent, getIfPresent, invalidate, invalidateAll, invalidateAll, put, putAll, size, stats
toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asMap
cleanUp, get, getAllPresent, getIfPresent, invalidate, invalidateAll, invalidateAll, put, putAll, size, stats
private final LoadingCache<K,V> delegate
protected SimpleForwardingLoadingCache(LoadingCache<K,V> delegate)
protected final LoadingCache<K,V> delegate()
ForwardingObject
ForwardingSet.delegate()
. Concrete subclasses override this method to supply
the instance being decorated.delegate
in class ForwardingLoadingCache<K,V>