Package org.apache.cxf.clustering
Interface FailoverStrategy
-
- All Known Implementing Classes:
AbstractStaticFailoverStrategy,RandomStrategy,RetryStrategy,SequentialStrategy
public interface FailoverStrategySupports pluggable strategies for alternate endpoint selection on failover.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.StringselectAlternateAddress(List<String> addresses)Select one of the alternate addresses for a retried invocation.EndpointselectAlternateEndpoint(List<Endpoint> alternates)Select one of the alternate endpoints for a retried invocation.
-
-
-
Method Detail
-
getAlternateEndpoints
List<Endpoint> getAlternateEndpoints(Exchange exchange)
Get the alternate endpoints for this invocation.- Parameters:
exchange- the current Exchange- Returns:
- a failover endpoint if one is available
-
selectAlternateEndpoint
Endpoint selectAlternateEndpoint(List<Endpoint> alternates)
Select one of the alternate endpoints for a retried invocation.- Parameters:
alternates- List of alternate endpoints if available- Returns:
- the selected endpoint
-
getAlternateAddresses
List<String> getAlternateAddresses(Exchange exchange)
Get the alternate addresses for this invocation. These addresses over-ride any addresses specified in the WSDL.- Parameters:
exchange- the current Exchange- Returns:
- a failover endpoint if one is available
-
-