public class AsyncWriteBehind extends Object implements WriteBehind
| Modifier and Type | Field and Description |
|---|---|
static ItemScatterPolicy<SingleAsyncOperation> |
POLICY |
| Constructor and Description |
|---|
AsyncWriteBehind(AsyncCoordinator async,
int writeBehindConcurrency)
Instantiate a new instance of
AsyncWriteBehind by providing the async coordinator instance that will be
used for the underlying behavior. |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(CacheEntry entry) |
long |
getQueueSize() |
void |
setOperationsFilter(OperationsFilter filter) |
void |
start(CacheWriter writer) |
void |
stop() |
void |
write(Element element) |
public static final ItemScatterPolicy<SingleAsyncOperation> POLICY
public AsyncWriteBehind(AsyncCoordinator async, int writeBehindConcurrency)
AsyncWriteBehind by providing the async coordinator instance that will be
used for the underlying behavior.async - the async coordinator instance that will be used by the write behind queuewriteBehindConcurrency - the amount of buckets and threads to usepublic void start(CacheWriter writer) throws CacheException
start in interface WriteBehindCacheExceptionpublic void write(Element element)
write in interface WriteBehindpublic void delete(CacheEntry entry)
delete in interface WriteBehindpublic void setOperationsFilter(OperationsFilter filter)
setOperationsFilter in interface WriteBehindpublic void stop()
throws CacheException
stop in interface WriteBehindCacheExceptionpublic long getQueueSize()
getQueueSize in interface WriteBehindCopyright © 2003–2024 Terracotta, Inc.. All rights reserved.