public static class SerializationPagedCache.FakeBinaryStore extends Object implements BinaryStore
BinaryStore.KeySetAware, BinaryStore.SizeAware
Constructor | Description |
---|---|
FakeBinaryStore() |
Modifier and Type | Method | Description |
---|---|---|
void |
erase(Binary binKey) |
Remove the specified key from the underlying store if present.
|
void |
eraseAll() |
Remove all data from the underlying store.
|
protected Map |
getBinaryMap() |
Obtain the map that stores the binary values held by this
BinaryStore.
|
Iterator |
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.
|
String |
toString() |
Returns a string representation of the object.
|
public Binary load(Binary binKey)
load
in interface BinaryStore
binKey
- key whose associated value is to be returnedpublic void store(Binary binKey, Binary binValue)
store
in interface BinaryStore
binKey
- key to store the value underbinValue
- value to be storedpublic void erase(Binary binKey)
erase
in interface BinaryStore
binKey
- key whose mapping is to be removed from the mappublic void eraseAll()
eraseAll
in interface BinaryStore
public Iterator keys()
keys
in interface BinaryStore
public String toString()
protected Map getBinaryMap()