|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.NullImplementation.NullCacheStore
public static class NullImplementation.NullCacheStore
An implementation of an CacheStore that does nothing.
Field Summary | |
---|---|
static NullImplementation.NullCacheStore |
INSTANCE Singleton instance. |
Constructor Summary | |
---|---|
NullImplementation.NullCacheStore() |
Method Summary | |
---|---|
void |
erase(java.lang.Object oKey) Remove the specified key from the underlying store if present. |
void |
eraseAll(java.util.Collection colKeys) Remove the specified keys from the underlying store if present. |
java.lang.Object |
load(java.lang.Object oKey) Return the value associated with the specified key, or null if the key does not have an associated value in the underlying store. |
java.util.Map |
loadAll(java.util.Collection colKeys) Return the values associated with each the specified keys in the passed collection. |
void |
store(java.lang.Object oKey, java.lang.Object oValue) Store the specified value under the specified key in the underlying store. |
void |
storeAll(java.util.Map mapEntries) Store the specified values under the specified keys in the underlying store. |
Field Detail |
---|
public static final NullImplementation.NullCacheStore INSTANCE
Constructor Detail |
---|
public NullImplementation.NullCacheStore()
Method Detail |
---|
public java.lang.Object load(java.lang.Object oKey)
load
in interface CacheLoader
oKey
- key whose associated value is to be returnedpublic java.util.Map loadAll(java.util.Collection colKeys)
loadAll
in interface CacheLoader
colKeys
- a collection of keys to loadpublic void store(java.lang.Object oKey, java.lang.Object oValue)
store
in interface CacheStore
oKey
- key to store the value underoValue
- value to be storedpublic void storeAll(java.util.Map mapEntries)
If this operation fails (by throwing an exception) after a partial success, the convention is that entries which have been stored successfully are to be removed from the specified mapEntries, indicating that the store operation for the entries left in the map has failed or has not been attempted.
storeAll
in interface CacheStore
mapEntries
- a Map of any number of keys and values to storepublic void erase(java.lang.Object oKey)
erase
in interface CacheStore
oKey
- key whose mapping is being removed from the cachepublic void eraseAll(java.util.Collection colKeys)
If this operation fails (by throwing an exception) after a partial success, the convention is that keys which have been erased successfully are to be removed from the specified colKeys, indicating that the erase operation for the keys left in the collection has failed or has not been attempted.
eraseAll
in interface CacheStore
colKeys
- keys whose mappings are being removed from the cache
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |