Class ConsumerStartRetryOptions

Assembly: redb.Route.dll

Retry of a consumer that failed to start with its context (RedbRoute:ConsumerStartRetry), the back-off of
Apache Camel's supervising route controller. A broker or a server that is not up yet when the context starts
leaves the route Errored; the context then starts its consumer again in the background, with a pause that
grows from by up to , until it starts or
runs out. The route stays Errored while it waits, so health reports it.

public sealed class ConsumerStartRetryOptions

Inheritance

Object→ConsumerStartRetryOptions

Properties

Delay

Pause before the first retry (Camel backOffDelay). Default: 2 seconds.

public TimeSpan Delay { get; set; }

Enabled

Whether a consumer that failed to start is started again. Default: true.

public bool Enabled { get; set; }

MaxAttempts

How many retries a consumer gets; 0 retries until the context stops (Camel backOffMaxAttempts).

public int MaxAttempts { get; set; }

MaxDelay

The longest pause between two retries (Camel backOffMaxDelay). Default: 1 minute.

public TimeSpan MaxDelay { get; set; }

Multiplier

Factor the pause grows by after each failed retry (Camel backOffMultiplier). Default: 2.

public double Multiplier { get; set; }

UnhealthyOnExhausted

Whether an Errored route no start retry waits for (the retries ran out, retry is off, or a route policy

public bool UnhealthyOnExhausted { get; set; }

UnhealthyOnRestarting

Whether an Errored route whose consumer waits for a start retry makes health Unhealthy (Camel

public bool UnhealthyOnRestarting { get; set; }

Methods

ErroredRouteIsUnhealthy(bool)

Whether an Errored route makes health Unhealthy rather than Degraded:

public bool ErroredRouteIsUnhealthy(bool retryPending)