MetricSnapshotStrategy

Metric decorator for snapshot strategies that collects metrics on snapshot strategy operations. This class wraps a SnapshotStrategy and adds metrics collection with tags for aggregate name to track snapshot strategy performance and success rates.

Constructors

Link copied to clipboard
constructor(delegate: SnapshotStrategy)

Properties

Link copied to clipboard
open override val delegate: SnapshotStrategy

the underlying snapshot strategy implementation

Functions

Link copied to clipboard

Wraps a SnapshotStrategy with metrics collection capabilities. Returns a MetricSnapshotStrategy that collects metrics on snapshot strategy operations.

Link copied to clipboard
open override fun onEvent(stateEventExchange: StateEventExchange<*>): Mono<Void>

Processes a state event exchange for snapshot strategy evaluation and collects metrics on the operation. Metrics collected include timing, success/failure rates, and tags for aggregate identification.