public interface FailoverStrategy
Modifier and Type | Method and Description |
---|---|
List<String> |
getAlternateAddresses(Exchange exchange)
Get the alternate addresses for this invocation.
|
List<Endpoint> |
getAlternateEndpoints(Exchange exchange)
Get the alternate endpoints for this invocation.
|
String |
selectAlternateAddress(List<String> addresses)
Select one of the alternate addresses for a retried invocation.
|
Endpoint |
selectAlternateEndpoint(List<Endpoint> alternates)
Select one of the alternate endpoints for a retried invocation.
|
List<Endpoint> getAlternateEndpoints(Exchange exchange)
exchange
- the current ExchangeEndpoint selectAlternateEndpoint(List<Endpoint> alternates)
alternates
- List of alternate endpoints if availableList<String> getAlternateAddresses(Exchange exchange)
exchange
- the current ExchangeApache CXF