public class CacheStoreMap extends ConverterCollections.ConverterMap
Note: The clear() method is explicitly not implemented. Items can be removed individually, but the suggested usage is to indicate item deletion by state change, such as by setting a persistent "item-deleted" flag. There are two reasons for this:
| Modifier and Type | Class and Description |
|---|---|
static class |
CacheStoreMap.ReadWriteMap
A Map implementation that delegates straight through to a CacheStore.
|
| Constructor and Description |
|---|
CacheStoreMap(BackingMapManagerContext ctx, CacheStore store)
Construct a read/write CacheStoreMap.
|
CacheStoreMap(BackingMapManagerContext ctx, CacheStore store, boolean fBlind)
Construct a read/write CacheStoreMap.
|
CacheStoreMap(BackingMapManagerContext ctx, IterableCacheLoader loader)
Construct a read-only CacheStoreMap.
|
getConverterKeyDown, getConverterKeyUp, getConverterValueDown, getConverterValueUpclear, containsKey, containsValue, entrySet, equals, get, getMap, hashCode, instantiateCollection, instantiateEntrySet, instantiateMap, instantiateSet, isEmpty, keySet, put, putAll, remove, size, toString, valuesclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic CacheStoreMap(BackingMapManagerContext ctx, IterableCacheLoader loader)
ctx - the context provided by the CacheService which is using this backing maploader - the CacheLoader to delegate read operations topublic CacheStoreMap(BackingMapManagerContext ctx, CacheStore store)
ctx - the context provided by the CacheService which is using this backing mapstore - the CacheStore to delegate read and write operations topublic CacheStoreMap(BackingMapManagerContext ctx, CacheStore store, boolean fBlind)
ctx - the context provided by the CacheService which is using this backing mapstore - the CacheStore to delegate read and write operations tofBlind - pass true to optimize put() and remove() by allowing them to skip the loading of old values