|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ehcache.loaderwriter.writebehind.AggregateWriteBehindQueue<K,V>
public class AggregateWriteBehindQueue<K,V>
Nested Class Summary | |
---|---|
protected static class |
AggregateWriteBehindQueue.WriteBehindQueueFactory<K,V>
Factory used to create write behind queues. |
Constructor Summary | |
---|---|
protected |
AggregateWriteBehindQueue(WriteBehindConfiguration config,
AggregateWriteBehindQueue.WriteBehindQueueFactory<K,V> queueFactory,
CacheLoaderWriter<K,V> cacheLoaderWriter)
|
|
AggregateWriteBehindQueue(WriteBehindConfiguration config,
CacheLoaderWriter<K,V> cacheLoaderWriter)
|
Method Summary | |
---|---|
void |
delete(K key)
Deletes a single entry from the underlying system of record. |
long |
getQueueSize()
Gets the best estimate for items in the queue still awaiting processing. |
V |
load(K key)
Loads the value to be associated with the given key in the Cache using this
CacheLoaderWriter instance. |
void |
setOperationsFilter(OperationsFilter<SingleOperation<K,V>> filter)
Set the operations filter that should be used. |
void |
start()
Start the write behind queue |
void |
stop()
Stop the coordinator and all the internal data structures. |
void |
write(K key,
V value)
Writes a single entry to the underlying system of record, maybe a brand new value or an update to an existing value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AggregateWriteBehindQueue(WriteBehindConfiguration config, AggregateWriteBehindQueue.WriteBehindQueueFactory<K,V> queueFactory, CacheLoaderWriter<K,V> cacheLoaderWriter)
public AggregateWriteBehindQueue(WriteBehindConfiguration config, CacheLoaderWriter<K,V> cacheLoaderWriter)
Method Detail |
---|
public void start()
WriteBehind
start
in interface WriteBehind<K,V>
public V load(K key) throws java.lang.Exception
WriteBehind
Cache
using this
CacheLoaderWriter
instance.
load
in interface WriteBehind<K,V>
key
- the key that will map to the value
returned
java.lang.Exception
public void write(K key, V value) throws CacheWritingException
WriteBehind
write
in interface WriteBehind<K,V>
CacheWritingException
public void delete(K key) throws CacheWritingException
WriteBehind
delete
in interface WriteBehind<K,V>
CacheWritingException
public void stop()
WriteBehind
stop
in interface WriteBehind<K,V>
public void setOperationsFilter(OperationsFilter<SingleOperation<K,V>> filter)
WriteBehind
setOperationsFilter
in interface WriteBehind<K,V>
filter
- the filter that will be used as of nowpublic long getQueueSize()
WriteBehind
getQueueSize
in interface WriteBehind<K,V>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |