public class DummyJournalSystem extends java.lang.Object implements JournalSystem
| Constructor and Description |
|---|
DummyJournalSystem() |
| Modifier and Type | Method and Description |
|---|---|
long |
getReplayId() |
void |
onBecomeFollower() |
void |
onBecomeLeader() |
void |
replayTo(long journalId) |
void |
setReplayId(long replayId) |
void |
write(Journal journal) |
java.util.concurrent.Future<java.lang.Boolean> |
writeAsync(Journal journal) |
protected void |
writeInternal(Journal journal) |
public void write(Journal journal) throws StarException
write in interface JournalSystemStarExceptionprotected void writeInternal(Journal journal) throws StarException
StarExceptionpublic java.util.concurrent.Future<java.lang.Boolean> writeAsync(Journal journal) throws StarException
writeAsync in interface JournalSystemStarExceptionpublic void replayTo(long journalId)
throws StarException
replayTo in interface JournalSystemStarExceptionpublic void setReplayId(long replayId)
setReplayId in interface JournalSystempublic long getReplayId()
getReplayId in interface JournalSystempublic void onBecomeLeader()
onBecomeLeader in interface JournalSystempublic void onBecomeFollower()
onBecomeFollower in interface JournalSystemCopyright © 2024. All rights reserved.