|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.clustering.AbstractStaticFailoverStrategy
public abstract class AbstractStaticFailoverStrategy
Failover strategy based on a static cluster represented by multiple endpoints associated with the same service instance.
| Constructor Summary | |
|---|---|
AbstractStaticFailoverStrategy()
|
|
| Method Summary | ||
|---|---|---|
List<String> |
getAlternateAddresses(Exchange exchange)
Get the alternate addresses for this invocation. |
|
List<Endpoint> |
getAlternateEndpoints(Exchange exchange)
Get the alternate endpoints for this invocation. |
|
protected List<Endpoint> |
getEndpoints(Exchange exchange,
boolean acceptCandidatesWithSameAddress)
Get the endpoints for this invocation. |
|
protected abstract
|
getNextAlternate(List<T> alternates)
Get next alternate endpoint. |
|
String |
selectAlternateAddress(List<String> alternates)
Select one of the alternate addresses for a retried invocation. |
|
Endpoint |
selectAlternateEndpoint(List<Endpoint> alternates)
Select one of the alternate endpoints for a retried invocation. |
|
void |
setAlternateAddresses(List<String> alternateAddresses)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractStaticFailoverStrategy()
| Method Detail |
|---|
public void setAlternateAddresses(List<String> alternateAddresses)
public List<String> getAlternateAddresses(Exchange exchange)
getAlternateAddresses in interface FailoverStrategyexchange - the current Exchange
public String selectAlternateAddress(List<String> alternates)
selectAlternateAddress in interface FailoverStrategya - List of alternate addresses if available
public List<Endpoint> getAlternateEndpoints(Exchange exchange)
getAlternateEndpoints in interface FailoverStrategyexchange - the current Exchange
public Endpoint selectAlternateEndpoint(List<Endpoint> alternates)
selectAlternateEndpoint in interface FailoverStrategya - List of alternate endpoints if available
protected List<Endpoint> getEndpoints(Exchange exchange,
boolean acceptCandidatesWithSameAddress)
exchange - the current ExchangeacceptCandidatesWithSameAddress - true to accept candidates with the same address
protected abstract <T> T getNextAlternate(List<T> alternates)
alternates - non-empty List of alternate endpoints
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||