public class NoopJournal extends com.google.common.util.concurrent.AbstractIdleService implements Journal
Any use of this journal will throw an IllegalStateException.
Journal.Entry, Journal.JournalReadEntry| Constructor and Description |
|---|
NoopJournal() |
| Modifier and Type | Method and Description |
|---|---|
Journal.Entry |
createEntry(byte[] idBytes,
byte[] messageBytes) |
void |
markJournalOffsetCommitted(long offset) |
List<Journal.JournalReadEntry> |
read(long maximumCount) |
protected void |
shutDown() |
protected void |
startUp() |
long |
write(byte[] idBytes,
byte[] messageBytes) |
long |
write(List<Journal.Entry> entries) |
public Journal.Entry createEntry(byte[] idBytes, byte[] messageBytes)
createEntry in interface Journalpublic long write(List<Journal.Entry> entries)
public long write(byte[] idBytes,
byte[] messageBytes)
public List<Journal.JournalReadEntry> read(long maximumCount)
public void markJournalOffsetCommitted(long offset)
markJournalOffsetCommitted in interface Journalprotected void startUp()
throws Exception
startUp in class com.google.common.util.concurrent.AbstractIdleServiceExceptionCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.