Jizoku.ReadModel.HistoryPolicy (jizoku v0.4.0)

Copy Markdown View Source

Host-configured thresholds for durable run and continuation-chain history.

Public read models use this policy to classify run-thread size and choose the default bound for explicit continuation-chain traversal.

Summary

Functions

Returns the hop count at which continuation-chain warnings begin.

Returns the default upper bound for continuation-chain traversal.

Returns the configured size classification for one run thread.

Types

level()

@type level() :: :normal | :warning | :critical

summary()

@type summary() :: %{
  thread_revision: non_neg_integer(),
  level: level(),
  warning_threshold: pos_integer(),
  critical_threshold: pos_integer()
}

Functions

chain_warning_hops()

@spec chain_warning_hops() :: pos_integer()

Returns the hop count at which continuation-chain warnings begin.

max_chain_hops()

@spec max_chain_hops() :: pos_integer()

Returns the default upper bound for continuation-chain traversal.

summary(thread_revision)

@spec summary(non_neg_integer()) :: summary()

Returns the configured size classification for one run thread.