|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheWriterManager
A CacheWriterManager
coordinates how element are written to a back-end store.
The CacheWriterManager
will in its turn call the CacheWriter
that belongs to the relevant cache to perform
the actual write logic as it's implemented by the user.
Method Summary | |
---|---|
void |
dispose()
Cleans up the resources of the cache writer manager. |
void |
init(Cache cache)
Initialize the cache writer manager. |
void |
put(Element element)
Schedule a put operation for this element in the CacheWriterManager, which will call the CacheWriter when appropriate. |
void |
remove(CacheEntry entry)
Schedule a remove operation for this key in the CacheWriterManager, which will call the CacheWriter when appropriate. |
Method Detail |
---|
void init(Cache cache) throws CacheException
This method is called when the cache writer manager is registered to a cache.
cache
- the cache with which the writer manager
CacheException
- when an exception occurs during the initialisation of the cachevoid put(Element element) throws CacheException
element
- the element that should be used for the operation
CacheException
- when an exception occurs during the writing of the elementvoid remove(CacheEntry entry) throws CacheException
entry
- the entry that should be used for the operation
CacheException
- when an exception occurs during the removal of the elementvoid dispose() throws CacheException
This method is called when the manager is unregistered from a cache.
CacheException
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |