public interface BinaryStore
CacheStore| Modifier and Type | Interface and Description | 
|---|---|
static interface  | 
BinaryStore.KeySetAware
If a BinaryStore is aware of which keys that it stores, then it should
 implement this optional interface in order to allow that information
 to be efficiently communicated to an intelligent consumer of the BinaryStore
 interface. 
 | 
static interface  | 
BinaryStore.SizeAware
If a BinaryStore is aware of the number of keys that it stores, then it
 should implement this optional interface in order to allow that
 information to be efficiently communicated to an intelligent consumer of
 the BinaryStore interface. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
erase(Binary binKey)
Remove the specified key from the underlying store if present. 
 | 
void | 
eraseAll()
Remove all data from the underlying store. 
 | 
Iterator<Binary> | 
keys()
Iterate all keys in the underlying store. 
 | 
Binary | 
load(Binary binKey)
Return the value associated with the specified key, or null if the
 key does not have an associated value in the underlying store. 
 | 
void | 
store(Binary binKey,
     Binary binValue)
Store the specified value under the specific key in the underlying
 store. 
 | 
Binary load(Binary binKey)
binKey - key whose associated value is to be returnedvoid store(Binary binKey, Binary binValue)
binKey - key to store the value underbinValue - value to be storedUnsupportedOperationException - if this implementation or the
         underlying store is read-onlyvoid erase(Binary binKey)
binKey - key whose mapping is to be removed from the mapUnsupportedOperationException - if this implementation or the
         underlying store is read-onlyvoid eraseAll()
UnsupportedOperationException - if this implementation or the
         underlying store is read-onlyIterator<Binary> keys()
UnsupportedOperationException - if the underlying store is not
         iterable