@Beta public abstract static class ForwardingCache.SimpleForwardingCache<K,V> extends ForwardingCache<K ,V>
ForwardingCache where subclasses can pass in an already constructed
Cache as the delegete.
ForwardingCache.SimpleForwardingCache <K,V> | Modifier | Constructor and Description |
|---|---|
protected |
SimpleForwardingCache(Cache
|
| Modifier and Type | Method and Description |
|---|---|
protected Cache |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
asMap, cleanUp, get, getAllPresent, getIfPresent, invalidate, invalidateAll, invalidateAll, put, putAll, size, statstoStringprotected final Cache<K ,V> delegate()
ForwardingObject
ForwardingSet.delegate() . Concrete subclasses override this method to supply the instance being decorated.