WriterManager that writes elements directly through to the underlying store.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements net. |
| 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. |
| cache | back to summary |
|---|---|
| private volatile Cache cache | |
| WriteThroughManager | back to summary |
|---|---|
| public WriteThroughManager() | |
| 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. | |
| 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.
| |