org.terracotta.modules.ehcache.writebehind
Class AsyncWriteBehind
java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 queuecache - the cache this write behind is bound to
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.