IDurableLogDraft<T>
interface
Namespace: Orleans.Durable.Journaling
Streams volatile items to the readers of an
Orleans.Durable.Journaling.IDurableLog which include drafts, until the draft commits durable entries or is abandoned. public interface IDurableLogDraft<T> : IDisposableRemarks
The draft holds its items in memory only while it is open. Closing the draft releases them, so a reader which has not read every item when the draft closes receives the draft's outcome next and never receives the remaining items. The committed entries carry the draft's final content.
The draft closes when its owner commits, abandons, or disposes it, and when the log closes it because the log's journal was deleted or the log was sealed. Disposing an open draft abandons it. Use the draft in the owning activation's execution context and check Orleans.Durable.Journaling.IDurableLogDraft.IsOpen before committing a draft which the log may have closed.
Properties
Methods
Abandon(string?)Closes the draft without entries and reportsLogEventKindwithLogDraftAbandonReason.Commit(ReadOnlySpan<T>)Closes the draft and appends the durable entries which replace its items.Write(T)Writes a volatile item and delivers it to readers which include drafts.
