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.
|
m_convKeyDown, m_convKeyUp, m_convValDown, m_convValUp, m_map, m_set
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.
|
clear, containsKey, containsValue, entrySet, equals, get, getConverterKeyDown, getConverterKeyUp, getConverterValueDown, getConverterValueUp, getMap, hashCode, instantiateCollection, instantiateEntrySet, instantiateMap, instantiateSet, isEmpty, keySet, put, putAll, remove, size, toString, values
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public 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