namespace ZB.MOM.WW.OtOpcUa.Core.Abstractions;

/// <summary>
///     Per-append durability cadence for the historization outbox. Local to the OtOpcUa abstraction
///     layer (deliberately decoupled from the gateway's internal store-forward commit-mode type).
/// </summary>
public enum HistorizationCommitMode
{
    /// <summary>fsync the log before each <c>AppendAsync</c> returns — safest, no loss window.</summary>
    PerEntry,

    /// <summary>Batch commits onto a background timer — higher throughput, a bounded worst-case loss window.</summary>
    Periodic,
}
