Package com.tangosol.net.cache
Class SerializationPagedCache.WrapperBinaryStore
java.lang.Object
com.tangosol.net.cache.SerializationPagedCache.WrapperBinaryStore
- All Implemented Interfaces:
- BinaryStore
- Enclosing class:
- SerializationPagedCache
A wrapper BinaryStore implementation that keeps track of its size.
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.tangosol.io.BinaryStoreBinaryStore.KeySetAware, BinaryStore.SizeAware
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidTest if the underlying store can be destroyed, and if so, destroy it.protected voidclose()Used to specify that the page is no longer current.protected voiddestroy()Destroy the underlying BinaryStore.voidRemove the specified key from the underlying store if present.voideraseAll()Remove all data from the underlying store.protected MapintgetSize()booleankeys()Iterate all keys in the underlying store.Return the value associated with the specified key, or null if the key does not have an associated value in the underlying store.protected voidsetBinaryStore(BinaryStore store) Specify the store to wrap.voidStore the specified value under the specific key in the underlying store.toString()Returns a string representation of the object.
- 
Constructor Details- 
WrapperBinaryStoreConstruct a WrapperBinaryStore.- Parameters:
- store- the BinaryStore to delegate to
 
 
- 
- 
Method Details- 
loadReturn the value associated with the specified key, or null if the key does not have an associated value in the underlying store.- Specified by:
- loadin interface- BinaryStore
- Parameters:
- binKey- key whose associated value is to be returned
- Returns:
- the value associated with the specified key, or null if no value is available for that key
 
- 
storeStore the specified value under the specific key in the underlying store. This method is intended to support both key/value creation and value update for a specific key.- Specified by:
- storein interface- BinaryStore
- Parameters:
- binKey- key to store the value under
- binValue- value to be stored
 
- 
eraseRemove the specified key from the underlying store if present.- Specified by:
- erasein interface- BinaryStore
- Parameters:
- binKey- key whose mapping is to be removed from the map
 
- 
eraseAllpublic void eraseAll()Remove all data from the underlying store.- Specified by:
- eraseAllin interface- BinaryStore
 
- 
keysIterate all keys in the underlying store.- Specified by:
- keysin interface- BinaryStore
- Returns:
- a read-only iterator of the keys in the underlying store
 
- 
toStringReturns a string representation of the object.
- 
getBinaryStore- Returns:
- the wrapped BinaryStore; null after it is destroyed
 
- 
setBinaryStoreSpecify the store to wrap. The store is set to null if/when this wrapper destroys it.- Parameters:
- store- the wrapped BinaryStore
 
- 
getSizepublic int getSize()- Returns:
- the number of keys in the wrapped BinaryStore
 
- 
getBinaryStoreKeyMap- Returns:
- the map of keys stored by the wrapped BinaryStore
 
- 
isCurrentpublic boolean isCurrent()- Returns:
- true if the page is still current
 
- 
closeprotected void close()Used to specify that the page is no longer current.
- 
checkDestroyprotected void checkDestroy()Test if the underlying store can be destroyed, and if so, destroy it.
- 
destroyprotected void destroy()Destroy the underlying BinaryStore.
 
-