DecaySweeper

interface DecaySweeper

Evaluates propositions for lifecycle transitions and applies them according to a StatusTransitionPolicy.

Scheduling the sweep (cron, @Scheduled, manual trigger) is the consuming application's responsibility — DICE ships no scheduler of its own.

To customize forgetting or consolidation behavior, supply a different policy via DecaySweepConfig.policy rather than subclassing the sweeper.

Inheritors

Functions

Link copied to clipboard
abstract fun sweep(contextId: <Error class: unknown class>, config: DecaySweepConfig): DecaySweepResult

Sweep the propositions in a single context for lifecycle transitions.

Link copied to clipboard

Sweep the propositions across all contexts for lifecycle transitions.