Interface IReactorPartitionRecovery

Namespace
Cratis.Chronicle.Reactors
Assembly
Cratis.Chronicle.dll

Defines the optional capability to retry a failed partition for a reactor.

public interface IReactorPartitionRecovery
Extension Methods

Methods

ClearFailedPartitionQuarantineFor(Type, Partition, bool)

Clear the quarantine of a failed partition for a registered reactor and reset its retry budget, keeping its attempt history.

Task<ReactorPartitionQuarantineClearResult> ClearFailedPartitionQuarantineFor(Type reactorType, Partition partition, bool retryImmediately = true)

Parameters

reactorType Type

The registered reactor type.

partition Partition

The quarantined partition.

retryImmediately bool

Whether to start recovering the partition right away.

Returns

Task<ReactorPartitionQuarantineClearResult>

The bounded outcome of the request.

RetryFailedPartitionFor(Type, Partition)

Retry a failed partition for a registered reactor.

Task<ReactorPartitionRetryOutcome> RetryFailedPartitionFor(Type reactorType, Partition partition)

Parameters

reactorType Type

The registered reactor type.

partition Partition

The failed partition.

Returns

Task<ReactorPartitionRetryOutcome>

The bounded outcome of the retry request.