Package org.apache.cxf.clustering
Class SequentialStrategy
java.lang.Object
org.apache.cxf.clustering.AbstractStaticFailoverStrategy
org.apache.cxf.clustering.SequentialStrategy
- All Implemented Interfaces:
FailoverStrategy
- Direct Known Subclasses:
RetryStrategy
Failover strategy based on a sequential walk through the
static cluster represented by multiple endpoints associated
with the same service instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> TgetNextAlternate(List<T> alternates) Get next alternate endpoint.Methods inherited from class org.apache.cxf.clustering.AbstractStaticFailoverStrategy
getAlternateAddresses, getAlternateEndpoints, getDelayBetweenRetries, getEndpoints, getLogLevel, selectAlternateAddress, selectAlternateEndpoint, setAlternateAddresses, setDelayBetweenRetries
-
Constructor Details
-
SequentialStrategy
public SequentialStrategy()
-
-
Method Details
-
getNextAlternate
Get next alternate endpoint.- Specified by:
getNextAlternatein classAbstractStaticFailoverStrategy- Parameters:
alternates- non-empty List of alternate endpoints- Returns:
- the next endpoint or
nullin case there are no more alternates
-