Apache CXF API

org.apache.cxf.clustering
Interface FailoverStrategy

All Known Implementing Classes:
AbstractStaticFailoverStrategy, RandomStrategy, SequentialStrategy

public interface FailoverStrategy

Supports pluggable strategies for alternate endpoint selection on failover.


Method Summary
 java.util.List<Endpoint> getAlternateEndpoints(Exchange exchange)
          Get the alternate endpoints for this invocation.
 Endpoint selectAlternateEndpoint(java.util.List<Endpoint> alternates)
          Select one of the alternate endpoints for a retried invocation.
 

Method Detail

getAlternateEndpoints

java.util.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(java.util.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

Apache CXF API

Apache CXF