public class DLedgerEntryPusher extends Object
| Constructor and Description |
|---|
DLedgerEntryPusher(DLedgerConfig dLedgerConfig,
MemberState memberState,
DLedgerStore dLedgerStore,
DLedgerRpcService dLedgerRpcService) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkResponseFuturesTimeout(long beginIndex)
Check responseFutures timeout from {beginIndex} in currentTerm
|
boolean |
completeResponseFuture(long index)
Complete the TimeoutFuture in pendingAppendResponsesByTerm (CurrentTerm, index).
|
long |
getPeerWaterMark(long term,
String peerId) |
CompletableFuture<PushEntryResponse> |
handlePush(PushEntryRequest request) |
boolean |
isPendingFull(long currTerm) |
void |
registerStateMachine(Optional<StateMachineCaller> fsmCaller) |
void |
shutdown() |
void |
startup() |
CompletableFuture<AppendEntryResponse> |
waitAck(DLedgerEntry entry,
boolean isBatchWait) |
void |
wakeUpDispatchers() |
public DLedgerEntryPusher(DLedgerConfig dLedgerConfig, MemberState memberState, DLedgerStore dLedgerStore, DLedgerRpcService dLedgerRpcService)
public void startup()
public void shutdown()
public void registerStateMachine(Optional<StateMachineCaller> fsmCaller)
public CompletableFuture<PushEntryResponse> handlePush(PushEntryRequest request) throws Exception
Exceptionpublic long getPeerWaterMark(long term,
String peerId)
public boolean isPendingFull(long currTerm)
public CompletableFuture<AppendEntryResponse> waitAck(DLedgerEntry entry, boolean isBatchWait)
public void wakeUpDispatchers()
public boolean completeResponseFuture(long index)
public void checkResponseFuturesTimeout(long beginIndex)
Copyright © 2023. All rights reserved.