public class IteratorImpl extends Object
| Constructor and Description |
|---|
IteratorImpl(FSMCallerImpl fsmCaller,
LogManager logManager,
List<Closure> closures,
long firstClosureIndex,
long lastAppliedIndex,
long committedIndex,
AtomicLong applyingIndex) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
commit() |
void |
commitAndSnapshotSync(Closure done) |
Closure |
done() |
LogEntry |
entry() |
boolean |
getAutoCommitPerLog() |
RaftException |
getError() |
long |
getIndex() |
boolean |
hasError() |
boolean |
isGood() |
void |
next()
Move to next
|
protected void |
runTheRestClosureWithError() |
void |
setAutoCommitPerLog(boolean status) |
void |
setErrorAndRollback(long ntail,
Status st) |
String |
toString() |
public IteratorImpl(FSMCallerImpl fsmCaller, LogManager logManager, List<Closure> closures, long firstClosureIndex, long lastAppliedIndex, long committedIndex, AtomicLong applyingIndex)
public LogEntry entry()
public RaftException getError()
public boolean isGood()
public boolean hasError()
public void setAutoCommitPerLog(boolean status)
public boolean getAutoCommitPerLog()
public void next()
public long getIndex()
public Closure done()
protected void runTheRestClosureWithError()
public boolean commit()
public void commitAndSnapshotSync(Closure done)
public void setErrorAndRollback(long ntail,
Status st)
Copyright © 2024. All rights reserved.