|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.writer.writethrough.WriteThroughManager
public class WriteThroughManager
Implements a WriterManager that writes elements directly through to the underlying store.
| Constructor Summary | |
|---|---|
WriteThroughManager()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WriteThroughManager()
| Method Detail |
|---|
public void init(Cache cache)
throws CacheException
This method is called when the cache writer manager is registered to a cache.
init in interface CacheWriterManagercache - the cache with which the writer manager
CacheException - when an exception occurs during the initialisation of the cache
public void put(Element element)
throws CacheException
put in interface CacheWriterManagerelement - the element that should be used for the operation
CacheException - when an exception occurs during the writing of the element
public void remove(CacheEntry entry)
throws CacheException
remove in interface CacheWriterManagerentry - the entry that should be used for the operation
CacheException - when an exception occurs during the removal of the elementpublic void dispose()
This method is called when the manager is unregistered from a cache.
dispose in interface CacheWriterManager
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||