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 Journal
public 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 Journal
protected void startUp() throws Exception
startUp
in class com.google.common.util.concurrent.AbstractIdleService
Exception
Copyright © 2012–2019 Graylog, Inc.. All rights reserved.