|
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.io.AsyncBinaryStoreManager
public class AsyncBinaryStoreManager
An AsyncBinaryStoreManager is a wrapper BinaryStoreManager that creates wrapper AsyncBinaryStore objects. An AsyncBinaryStore is a BinaryStore wrapper that performs the "O" portion of its I/O asynchronously (on a daemon thread.) Since the "O" portion is passed along to the wrapped BinaryStore on a separate thread, only read operations are blocking, thus the BinaryStore operations on a whole appear much faster. (It is somewhat analogous to a write-behind cache.)
In order for the AsyncBinaryStore objects to be used in situations that require a BinaryStoreManager, this class provides a manager for the AsyncBinaryStore objects, but to create the BinaryStore objects that will be wrapped by the AsyncBinaryStore objects, this AsyncBinaryStoreManager class has to be provided with an underlying BinaryStoreManager to wrap.
Constructor Summary | |
---|---|
AsyncBinaryStoreManager(BinaryStoreManager manager)
Construct an AsyncBinaryStoreManager. |
|
AsyncBinaryStoreManager(BinaryStoreManager manager,
int cbMax)
Construct an AsyncBinaryStoreManager. |
Method Summary | |
---|---|
BinaryStore |
createBinaryStore()
Factory method: Returns a new BinaryStore. |
void |
destroyBinaryStore(BinaryStore store)
Lifecycle method: Destroy a BinaryStore previously created by this manager. |
protected BinaryStoreManager |
getBinaryStoreManager()
|
protected Map |
getBinaryStoreMap()
|
protected int |
getQueuedLimit()
|
protected AsyncBinaryStore |
instantiateAsyncBinaryStore(BinaryStore store)
Factory method: Instantiate an AsyncBinaryStore. |
Constructor Detail |
---|
public AsyncBinaryStoreManager(BinaryStoreManager manager)
manager
- the BinaryStoreManager to wrappublic AsyncBinaryStoreManager(BinaryStoreManager manager, int cbMax)
manager
- the BinaryStoreManager to wrapcbMax
- the maximum number of bytes to queue before blockingMethod Detail |
---|
public BinaryStore createBinaryStore()
createBinaryStore
in interface BinaryStoreManager
public void destroyBinaryStore(BinaryStore store)
destroyBinaryStore
in interface BinaryStoreManager
store
- a BinaryStore object previously created by this
managerprotected BinaryStoreManager getBinaryStoreManager()
protected Map getBinaryStoreMap()
protected int getQueuedLimit()
protected AsyncBinaryStore instantiateAsyncBinaryStore(BinaryStore store)
|
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 |