Class TransactedProcessor

Assembly: redb.Route.dll

Wraps an inner processor in a and manages
deferred commit/rollback.

The block owns a of deferred actions in
exchange.Properties["TRANSACT_ACTION"] for as long as it runs. Producers inside the block (Kafka, RabbitMQ,
etc.) add their sends through , keyed by a per-message-unique
name (e.g. kafka-send-{guid}, never the endpoint URI, so parallel fan-out branches to the same endpoint
never collide). After the database commits all actions are committed; on failure they are rolled back.


Blocks nest as in Camel: a Required or Mandatory block inside a running transaction is part of that unit of work
and leaves its sends to the enclosing block; a RequiresNew or Suppress block is a unit of work of its own and
settles only its own sends.

public sealed class TransactedProcessor : IProcessor

Inheritance

Object→TransactedProcessor

Implements

Methods

Process(IExchange, CancellationToken)

Processes the exchange asynchronously.

public Task Process(IExchange exchange, CancellationToken ct = default)

Constructors