org.ehcache.impl.internal.loaderwriter.writebehind
Interface WriteBehind<K,V>

All Superinterfaces:
CacheLoaderWriter<K,V>
All Known Implementing Classes:
BatchingLocalHeapWriteBehindQueue, NonBatchingLocalHeapWriteBehindQueue, StripedWriteBehind

public interface WriteBehind<K,V>
extends CacheLoaderWriter<K,V>


Method Summary
 long getQueueSize()
          Gets the best estimate for items in the queue still awaiting processing.
 void start()
          Start the write behind queue
 void stop()
          Stop the coordinator and all the internal data structures.
 
Methods inherited from interface org.ehcache.spi.loaderwriter.CacheLoaderWriter
delete, deleteAll, load, loadAll, write, writeAll
 

Method Detail

start

void start()
Start the write behind queue


stop

void stop()
Stop the coordinator and all the internal data structures.

This stops as quickly as possible without losing any previously added items. However, no guarantees are made towards the processing of these items. It's highly likely that items are still inside the internal data structures and not processed.


getQueueSize

long getQueueSize()
Gets the best estimate for items in the queue still awaiting processing.

Returns:
the amount of elements still awaiting processing.