|
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.Base
com.tangosol.net.cache.AbstractCacheLoader
com.tangosol.net.cache.AbstractCacheStore
com.tangosol.net.cache.BinaryStoreCacheStore
public class BinaryStoreCacheStore
A CacheStore that sits directly on top of a BinaryStore.
| Constructor Summary | |
|---|---|
BinaryStoreCacheStore(BinaryStore store)Create a CacheStore that delegates to a BinaryStore. |
|
BinaryStoreCacheStore(BinaryStore store, boolean fBinaryOnly)Create a CacheStore that delegates to a BinaryStore, optionally storing only Binary keys and values. |
|
BinaryStoreCacheStore(BinaryStore store, java.lang.ClassLoader loader)Create a CacheStore that delegates to a BinaryStore, using the passed ClassLoader for deserialization. |
|
| Method Summary | |
|---|---|
void |
erase(java.lang.Object oKey)Remove the specified key from the underlying store if present. |
protected java.lang.Object |
fromBinary(Binary bin)Translate the passed Binary object into an Object object. |
BinaryStore |
getBinaryStore()Returns the BinaryStore that this CacheStore uses for its storage. |
java.lang.ClassLoader |
getClassLoader()Returns the ClassLoader that this CacheStore uses for deserialization, if it has one. |
boolean |
isBinaryOnly()Determine if the keys and values in this CacheStore are known to be all Binary. |
java.util.Iterator |
keys()Iterate all keys in the underlying store. |
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. |
protected void |
setBinaryStore(BinaryStore store)Configures the BinaryStore that this CacheStore will use for its storage. |
protected void |
setClassLoader(java.lang.ClassLoader loader)Configure the ClassLoader that this CacheStore will use for deserialization. |
void |
store(java.lang.Object oKey, java.lang.Object oValue)Store the specified value under the specified key in the underlying store. |
protected Binary |
toBinary(java.lang.Object o)Translate the passed Object object into an Binary object. |
| Methods inherited from class com.tangosol.net.cache.AbstractCacheStore |
|---|
eraseAll, storeAll |
| Methods inherited from class com.tangosol.net.cache.AbstractCacheLoader |
|---|
loadAll |
| Methods inherited from interface com.tangosol.net.cache.CacheStore |
|---|
eraseAll, storeAll |
| Methods inherited from interface com.tangosol.net.cache.CacheLoader |
|---|
loadAll |
| Constructor Detail |
|---|
public BinaryStoreCacheStore(BinaryStore store)
store - the BinaryStore to use to write the serialized objects to
public BinaryStoreCacheStore(BinaryStore store,
java.lang.ClassLoader loader)
store - the BinaryStore to use to write the serialized objects toloader - the ClassLoader to use for deserialization
public BinaryStoreCacheStore(BinaryStore store,
boolean fBinaryOnly)
store - the BinaryStore to use to write the serialized objects tofBinaryOnly - true indicates that this CacheStore will only manage binary keys and values| Method Detail |
|---|
public java.lang.Object load(java.lang.Object oKey)
load in interface CacheLoaderload in class AbstractCacheLoaderoKey - key whose associated value is to be returned
public void store(java.lang.Object oKey,
java.lang.Object oValue)
store in interface CacheStorestore in class AbstractCacheStoreoKey - key to store the value underoValue - value to be storedjava.lang.UnsupportedOperationException - if this implementation or the underlying store is read-onlypublic void erase(java.lang.Object oKey)
erase in interface CacheStoreerase in class AbstractCacheStoreoKey - key to remove from the storejava.lang.UnsupportedOperationException - if this implementation or the underlying store is read-onlypublic java.util.Iterator keys()
keys in interface IterableCacheLoaderjava.lang.UnsupportedOperationException - if the underlying store is not iterableprotected Binary toBinary(java.lang.Object o)
o - the Object to serialize into a Binary objectprotected java.lang.Object fromBinary(Binary bin)
bin - the Binary object to deserializepublic BinaryStore getBinaryStore()
protected void setBinaryStore(BinaryStore store)
store - the BinaryStore to usepublic java.lang.ClassLoader getClassLoader()
protected void setClassLoader(java.lang.ClassLoader loader)
loader - the ClassLoader that this CacheStore should use for deserializationpublic boolean isBinaryOnly()
|
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 | |||||||