WriterManager that writes elements to a queue first and in the background sends the to the CacheWriter.
| Modifier and Type | Field and Description |
|---|---|
| private final WriteBehind |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements net. |
| public long | Returns: the amount of elements still awaiting processing.Gets the best estimate for items in the queue still awaiting processing. |
| public void | init(Cache
the cache with which the writer manager cache)Implements net. |
| public void | put(Element
the element that should be used for the operation element)Implements net. |
| public void | remove(CacheEntry
the entry that should be used for the operation entry)Implements net. |
| writeBehind | back to summary |
|---|---|
| private final WriteBehind writeBehind | |
| WriteBehindManager | back to summary |
|---|---|
| public WriteBehindManager(final Cache cache, final Store store) Create using the given cache.
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements net. Doc from net. Cleans up the resources of the cache writer manager. This method is called when the manager is unregistered from a cache. | |
| getQueueSize | back to summary |
|---|---|
| public long getQueueSize() Gets the best estimate for items in the queue still awaiting processing. Not including elements currently processed
| |
| init | back to summary |
|---|---|
| public void init(Cache cache) throws CacheException Implements net. Doc from net. Initialize the cache writer manager. This method is called when the cache writer manager is registered to a cache.
| |
| put | back to summary |
|---|---|
| public void put(Element element) throws CacheException Implements net. Doc from net. Schedule a put operation for this element in the CacheWriterManager, which will call the CacheWriter when appropriate.
| |
| remove | back to summary |
|---|---|
| public void remove(CacheEntry entry) throws CacheException Implements net. Doc from net. Schedule a remove operation for this key in the CacheWriterManager, which will call the CacheWriter when appropriate.
| |