|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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,
ClassLoader loader)
Create a CacheStore that delegates to a BinaryStore, using the passed ClassLoader for deserialization. |
Method Summary | |
---|---|
void |
erase(Object oKey)
Remove the specified key from the underlying store if present. |
protected 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. |
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. |
Iterator |
keys()
Iterate all keys in the underlying store. |
Object |
load(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(ClassLoader loader)
Configure the ClassLoader that this CacheStore will use for deserialization. |
void |
store(Object oKey,
Object oValue)
Store the specified value under the specified key in the underlying store. |
protected Binary |
toBinary(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 |
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 topublic BinaryStoreCacheStore(BinaryStore store, ClassLoader loader)
store
- the BinaryStore to use to write the serialized objects toloader
- the ClassLoader to use for deserializationpublic 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 valuesMethod Detail |
---|
public Object load(Object oKey)
load
in interface CacheLoader
load
in class AbstractCacheLoader
oKey
- key whose associated value is to be returned
public void store(Object oKey, Object oValue)
store
in interface CacheStore
store
in class AbstractCacheStore
oKey
- key to store the value underoValue
- value to be stored
UnsupportedOperationException
- if this implementation or the
underlying store is read-onlypublic void erase(Object oKey)
erase
in interface CacheStore
erase
in class AbstractCacheStore
oKey
- key to remove from the store
UnsupportedOperationException
- if this implementation or the
underlying store is read-onlypublic Iterator keys()
keys
in interface IterableCacheLoader
UnsupportedOperationException
- if the underlying store is not
iterableprotected Binary toBinary(Object o)
o
- the Object to serialize into a Binary object
protected Object fromBinary(Binary bin)
bin
- the Binary object to deserialize
public BinaryStore getBinaryStore()
protected void setBinaryStore(BinaryStore store)
store
- the BinaryStore to usepublic ClassLoader getClassLoader()
protected void setClassLoader(ClassLoader loader)
loader
- the ClassLoader that this CacheStore should use for
deserializationpublic boolean isBinaryOnly()
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |