public abstract class AbstractCacheStore<K,V> extends AbstractCacheLoader<K,V> implements CacheStore<K,V>
Base.LoggingWriter, Base.StackFrame| Constructor and Description |
|---|
AbstractCacheStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
erase(K key)
Remove the specified key from the underlying store if present.
|
void |
eraseAll(Collection<? extends K> colKeys)
Remove the specified keys from the underlying store if present.
|
void |
store(K key, V value)
Store the specified value under the specified key in the underlying store.
|
void |
storeAll(Map<? extends K,? extends V> mapEntries)
Store the specified values under the specified keys in the underlying store.
|
load, loadAllazzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, waitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitload, loadAllpublic void store(K key, V value)
store in interface CacheStore<K,V>key - key to store the value undervalue - value to be storedUnsupportedOperationException - if this implementation or the underlying store is read-onlypublic void storeAll(Map<? extends K,? extends V> mapEntries)
The implementation of this method calls store(K, V) for each entry in the supplied Map. Once stored successfully, an entry is removed from the Map (if possible).
Note: For many types of persistent stores, a single store operation is as expensive as a bulk store operation; therefore, subclasses should override this method if possible.
storeAll in interface CacheStore<K,V>mapEntries - a Map of any number of keys and values to storeUnsupportedOperationException - if this implementation or the underlying store is read-onlypublic void erase(K key)
erase in interface CacheStore<K,V>key - key whose mapping is being removed from the cacheUnsupportedOperationException - if this implementation or the underlying store is read-onlypublic void eraseAll(Collection<? extends K> colKeys)
The implementation of this method calls erase(K) for each key in the supplied Collection. Once erased successfully, a key is removed from the Collection (if possible).
Note: For many types of persistent stores, a single erase operation is as expensive as a bulk erase operation; therefore, subclasses should override this method if possible.
eraseAll in interface CacheStore<K,V>colKeys - keys whose mappings are being removed from the cacheUnsupportedOperationException - if this implementation or the underlying store is read-only