public class StateMachineCaller
extends org.apache.rocketmq.remoting.common.ServiceThread
| Constructor and Description |
|---|
StateMachineCaller(DLedgerStore dLedgerStore,
StateMachine statemachine,
DLedgerEntryPusher entryPusher) |
| Modifier and Type | Method and Description |
|---|---|
Long |
getLastAppliedIndex() |
String |
getServiceName() |
StateMachine |
getStateMachine() |
boolean |
onCommitted(long committedIndex) |
boolean |
onSnapshotLoad(CompletableFuture<Boolean> cb) |
boolean |
onSnapshotSave(CompletableFuture<Boolean> cb) |
void |
run() |
void |
shutdown() |
public StateMachineCaller(DLedgerStore dLedgerStore, StateMachine statemachine, DLedgerEntryPusher entryPusher)
public StateMachine getStateMachine()
public boolean onCommitted(long committedIndex)
public boolean onSnapshotLoad(CompletableFuture<Boolean> cb)
public boolean onSnapshotSave(CompletableFuture<Boolean> cb)
public void shutdown()
shutdown in class org.apache.rocketmq.remoting.common.ServiceThreadpublic void run()
public String getServiceName()
getServiceName in class org.apache.rocketmq.remoting.common.ServiceThreadpublic Long getLastAppliedIndex()
Copyright © 2023. All rights reserved.