public class RetryStrategy extends SequentialStrategy
Constructor and Description |
---|
RetryStrategy() |
Modifier and Type | Method and Description |
---|---|
List<Endpoint> |
getAlternateEndpoints(Exchange exchange)
Get the alternate endpoints for this invocation.
|
int |
getMaxNumberOfRetries() |
protected <T> T |
getNextAlternate(List<T> alternates)
Get next alternate endpoint.
|
void |
setMaxNumberOfRetries(int maxNumberOfRetries) |
protected boolean |
stillTheSameAddress() |
getAlternateAddresses, getDelayBetweenRetries, getEndpoints, getLogLevel, selectAlternateAddress, selectAlternateEndpoint, setAlternateAddresses, setDelayBetweenRetries
public List<Endpoint> getAlternateEndpoints(Exchange exchange)
AbstractStaticFailoverStrategy
getAlternateEndpoints
in interface FailoverStrategy
getAlternateEndpoints
in class AbstractStaticFailoverStrategy
exchange
- the current Exchangeprotected <T> T getNextAlternate(List<T> alternates)
SequentialStrategy
getNextAlternate
in class SequentialStrategy
alternates
- non-empty List of alternate endpointsprotected boolean stillTheSameAddress()
public void setMaxNumberOfRetries(int maxNumberOfRetries)
public int getMaxNumberOfRetries()
Apache CXF