Skip to content

IDurableLogCommandHandler<T> Methods

Receives decoded durable log commands from a codec implementation.

ApplyAppend(T)

abstract
public abstract void ApplyAppend(T item)
Applies one appended item. An append command applies each of its items in order.

Parameters

itemT

ApplyClear

abstract
public abstract void ApplyClear()
Applies a command which discards every entry and consumes one sequence number.

ApplyDraftCommit(LogDraftCommit)

abstract
public abstract void ApplyDraftCommit(LogDraftCommit commit)
Applies the outcome of a committed draft, whose entries have been applied.

Parameters

commitLogDraftCommit

ApplySeal

abstract
public abstract void ApplySeal()
Applies a command which ends the log.

ApplyTrimBefore(long)

abstract
public abstract void ApplyTrimBefore(long sequence)
Applies a command which discards entries before sequence.

Parameters

sequencelong

Reset(long, long, long, int)

abstract
public abstract void Reset(long epoch, long firstSequence, long resetSequence, int capacityHint)
Resets the receiver to a snapshot's state before applying its entries, which begin at firstSequence.

Parameters

epochlong
The identifier of the log's history, or zero when the log has no history.
firstSequencelong
The sequence number of the first retained entry.
resetSequencelong
The first sequence number after the most recent clear, or zero.
capacityHintint
The number of entries which follow.