org.terracotta.modules.ehcache.writebehind
Class AsyncWriteBehind

java.lang.Object
  extended by org.terracotta.modules.ehcache.writebehind.AsyncWriteBehind
All Implemented Interfaces:
WriteBehind

public class AsyncWriteBehind
extends Object
implements WriteBehind


Constructor Summary
AsyncWriteBehind(AsyncCoordinator async, Ehcache cache)
          Instantiate a new instance of AsyncWriteBehind by providing the async coordinator instance that will be used for the underlying behavior.
 
Method Summary
 void delete(CacheEntry entry)
           
 long getQueueSize()
           
 void setOperationsFilter(OperationsFilter filter)
           
 void start(CacheWriter writer)
           
 void stop()
           
 void write(Element element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncWriteBehind

public AsyncWriteBehind(AsyncCoordinator async,
                        Ehcache cache)
Instantiate a new instance of AsyncWriteBehind by providing the async coordinator instance that will be used for the underlying behavior.

Parameters:
async - the async coordinator instance that will be used by the write behind queue
cache - the cache this write behind is bound to
Method Detail

start

public void start(CacheWriter writer)
           throws CacheException
Specified by:
start in interface WriteBehind
Throws:
CacheException

write

public void write(Element element)
Specified by:
write in interface WriteBehind

delete

public void delete(CacheEntry entry)
Specified by:
delete in interface WriteBehind

setOperationsFilter

public void setOperationsFilter(OperationsFilter filter)
Specified by:
setOperationsFilter in interface WriteBehind

stop

public void stop()
          throws CacheException
Specified by:
stop in interface WriteBehind
Throws:
CacheException

getQueueSize

public long getQueueSize()
Specified by:
getQueueSize in interface WriteBehind


Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.