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
reactorTypeTypeThe registered reactor type.
partitionPartitionThe quarantined partition.
retryImmediatelyboolWhether 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
Returns
- Task<ReactorPartitionRetryOutcome>
The bounded outcome of the retry request.