Class CheckpointDlqHandler
Context-level error handler (installed as RouteContext.ErrorHandler when Tsak starts the context) that
dead-letters a failed exchange when the route carried a replay checkpoint. Reads route.checkpoint off the
exchange and hands it to for durable capture.
Capture is opt-in by construction: only routes with a .Replayable("…") marker leave a
checkpoint, so only those are captured. Routes without a checkpoint fall through — the DLQ never
tries to own an exchange the route author did not mark as replayable (and Route already warns if a
marker sits on a broker/transacted route, where the broker/transaction owns redelivery).
As the context's error handler it sees only the failures no OnException took — Apache Camel's model: an
OnException that takes a failure owns it; it can still dead-letter it explicitly with
.To("tsak-dlq:").
Capture never marks the failure handled. When the module brought an error handler of its own
(<deadLetterChannel> in its context.xml, or one set in code) it is : the
failure is captured first, then the module's handler sends it on and decides whether it is handled.
public sealed class CheckpointDlqHandler : IErrorHandler
Inheritance
Implements
Properties
Next
The error handler the module installed itself, run after the capture; null when none.
public IErrorHandler? Next { get; }
Methods
HandleError(IExchange, Exception, CancellationToken)
Handles an exception that was not caught by any registered exception handler.
public Task HandleError(IExchange exchange, Exception exception, CancellationToken ct = default)