Class FailoverStrategy
Failover load balancer strategy.
Selects the first healthy endpoint from an ordered list.
Tracks failures per endpoint and allows recovery after a configurable timeout.
Thread-safe via .
public sealed class FailoverStrategy : ILoadBalancerStrategy
Inheritance
Implements
Methods
ReportFailure(string, Exception)
Reports that a selected endpoint has failed.
public void ReportFailure(string endpoint, Exception exception)
ReportSuccess(string)
Reports that a selected endpoint succeeded.
public void ReportSuccess(string endpoint)
Select(IExchange, IReadOnlyList<string>)
Selects the next target URI based on strategy logic.
public string Select(IExchange exchange, IReadOnlyList<string> endpoints)
Constructors
FailoverStrategy(int, TimeSpan?)
Creates a failover strategy.