Class CheckpointingProgressStrategyFactory

java.lang.Object
io.axoniq.framework.messaging.eventstreaming.checkpoint.CheckpointingProgressStrategyFactory
All Implemented Interfaces:
SegmentProgressStrategyFactory

@Internal public final class CheckpointingProgressStrategyFactory extends Object implements SegmentProgressStrategyFactory
SegmentProgressStrategyFactory that produces a CheckpointingProgressStrategy for every segment of a processor whose components include one or more self-checkpointing Checkpointing units. It carries the processor-scoped participants and the auto/deferred mode, and creates one strategy per work package.

Use detecting() to obtain the component-driven selector: given a processor's EventHandlingComponents it inspects them for Checkpointing units (via EventHandlingComponent.unwrap(Class)) and returns either this checkpointing factory (when any participate) or the default token-storing factory (when none do).

Internal API. This class is marked Internal: it is part of the self-checkpointing support, intended primarily for internal and advanced use, and its shape may change in a minor or patch release.

Since:
5.3.0
Author:
Allard Buijze
See Also:
  • Constructor Details

    • CheckpointingProgressStrategyFactory

      public CheckpointingProgressStrategyFactory(List<Checkpointing> participants, boolean autoCheckpointing)
      Constructs a CheckpointingProgressStrategyFactory for the given participants.
      Parameters:
      participants - the self-checkpointing units of the processor; must not be empty
      autoCheckpointing - true when an ordinary handler is co-located (auto mode), false when every handler is self-checkpointing (fully-deferred)
  • Method Details