public abstract class DiskJournalCache extends java.lang.Object implements InputCache, OutputCache
Cache based on MapDB.| Modifier and Type | Class and Description |
|---|---|
static class |
DiskJournalCache.Input |
static class |
DiskJournalCache.Output |
| Constructor and Description |
|---|
DiskJournalCache(Configuration config,
MessageToJsonSerializer serializer,
com.codahale.metrics.MetricRegistry metricRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.util.Collection<Message> m) |
void |
add(Message message) |
int |
drainTo(java.util.Collection<? super Message> c,
int n) |
protected abstract java.lang.String |
getDbFileName() |
boolean |
isEmpty() |
Message |
pop() |
int |
size() |
@Inject public DiskJournalCache(Configuration config, MessageToJsonSerializer serializer, com.codahale.metrics.MetricRegistry metricRegistry) throws java.io.IOException, DiskJournalCacheCorruptSpoolException
java.io.IOExceptionDiskJournalCacheCorruptSpoolExceptionpublic int drainTo(java.util.Collection<? super Message> c, int n)
protected abstract java.lang.String getDbFileName()
Copyright © 2012-2014 TORCH GmbH. All Rights Reserved.