Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Apache CXF API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cxf.clustering
Interface FailoverStrategy

    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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Apache CXF API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Apache CXF is an effort undergoing incubation at the Apache Software Foundation(ASF) and sponsored by the Apache Incubator PMC.