IDurableLogCommandCodec<T>
interface
Namespace: Orleans.Durable.Journaling
Serializes one durable log command and applies one decoded command.
public interface IDurableLogCommandCodec<T>Methods
Apply(JournalBufferReader, IDurableLogCommandHandler<T>)Reads one encoded command and applies it toconsumer.WriteAppend(ReadOnlySpan<T>, JournalStreamWriter)Writes one command which appendsitems, in order.WriteClear(JournalStreamWriter)Writes a command which discards every entry and consumes one sequence number.WriteDraftCommit(LogDraftId, long, ReadOnlySpan<T>, JournalStreamWriter)Writes one command which commits a draft by appendingitems, in order, fromsequence.WriteSeal(JournalStreamWriter)Writes a command which ends the log.WriteSnapshot(long, long, long, bool, IReadOnlyCollection<T>, IReadOnlyCollection<LogDraftCommit>, JournalStreamWriter)Writes a snapshot command containing the log's state and its retained entries, which begin atfirstSequence.WriteTrimBefore(long, JournalStreamWriter)Writes a command which discards entries beforesequence.
