Zum Hauptinhalt springen

RecomputeLateDataOptions

Namespace: Meshmakers.Octo.Runtime.Contracts.StreamData

How the platform recomputes rollups after a late stream-data delivery. Bound from the RecomputeLateDataOptions.SectionName configuration section, which also holds the CrateDB recompute tunables (CrateRecomputeOptions) under other property names.

public sealed class RecomputeLateDataOptions

Inheritance Object → RecomputeLateDataOptions

Fields​

DefaultLateDataDebounce​

Default of RecomputeLateDataOptions.LateDataDebounce: five minutes.

public static TimeSpan DefaultLateDataDebounce;

SectionName​

Configuration section these options are bound from.

public static string SectionName;

DefaultMaxScopedRtIds​

Default of RecomputeLateDataOptions.MaxScopedRtIds.

public static int DefaultMaxScopedRtIds;

ValidationMessage​

The message for values RecomputeLateDataOptions.IsValid() rejects.

public static string ValidationMessage;

Properties​

LateDataDebounce​

How long the recompute of a rollup waits after the first late delivery before it runs, so that the late deliveries of that interval are computed in one job (StreamData:Recompute:LateDataDebounce). The state is the obligation's NextAttemptAt on the archive in MongoDB, so it holds across replicas and restarts. TimeSpan.Zero switches the debounce off (every late delivery is due on the next tick, as before). Must not be negative. Default five minutes.

public TimeSpan LateDataDebounce { get; set; }

Property Value​

TimeSpan

MaxScopedRtIds​

The most rtIds a late-delivery recompute is restricted to (StreamData:Recompute:MaxScopedRtIds). A write with more distinct rtIds, or a merged interval whose sets together hold more, falls back to the unscoped recompute of every series. 0 switches the scoped recompute off. Must not be negative. Default 200.

public int MaxScopedRtIds { get; set; }

Property Value​

Int32

Constructors​

RecomputeLateDataOptions()​

public RecomputeLateDataOptions()

Methods​

IsValid()​

True when the values are usable.

public bool IsValid()

Returns​

Boolean