Skip to content

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> : IDisposable

Remarks

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

  • Count Gets the number of items written to the open draft.
  • Id Gets the draft's identifier.
  • IsOpen Gets a value indicating whether the draft is open.

Methods