|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.writer.writebehind.WriteBehindQueue
public class WriteBehindQueue
An implementation of write behind with a queue that is kept in non durable local heap.
Constructor Summary | |
---|---|
WriteBehindQueue(CacheConfiguration config)
Create a new write behind queue. |
Method Summary | |
---|---|
void |
delete(CacheEntry entry)
Add a delete operation for the given cache entry |
void |
setOperationsFilter(OperationsFilter filter)
Set the operations filter that should be used. |
void |
start(CacheWriter writer)
Start the write behind queue with a cache writer |
void |
stop()
Stop the coordinator and all the internal data structures. |
void |
write(Element element)
Add a write operation for a given element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WriteBehindQueue(CacheConfiguration config)
config
- the configuration for the queueMethod Detail |
---|
public void start(CacheWriter writer)
start
in interface WriteBehind
writer
- the cache writer that should be used to process the operationsWriteBehind.stop()
public void setOperationsFilter(OperationsFilter filter)
setOperationsFilter
in interface WriteBehind
filter
- the filter that will be used as of nowpublic void write(Element element)
write
in interface WriteBehind
element
- the element for which a write operation will be added to the write behind queuepublic void delete(CacheEntry entry)
delete
in interface WriteBehind
entry
- the cache entry for which a delete operation will be added to the write behind queuepublic void stop()
stop
in interface WriteBehind
WriteBehind.start(net.sf.ehcache.writer.CacheWriter)
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |