public class DelegateJournalSystem extends java.lang.Object implements JournalSystem
| Constructor and Description |
|---|
DelegateJournalSystem(JournalSystem journalSystem) |
| 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) |
public DelegateJournalSystem(JournalSystem journalSystem)
public void write(Journal journal) throws StarException
write in interface JournalSystemStarExceptionpublic 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.