|
||||||||||
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 | |
---|---|
java.util.List<Endpoint> |
getAlternateEndpoints(Exchange exchange)
Get the alternate endpoints for this invocation. |
protected java.util.List<Endpoint> |
getEndpoints(Exchange exchange,
boolean acceptCandidatesWithSameAddress)
Get the endpoints for this invocation. |
protected abstract Endpoint |
getNextAlternate(java.util.List<Endpoint> alternates)
Get next alternate endpoint. |
Endpoint |
selectAlternateEndpoint(java.util.List<Endpoint> alternates)
Select one of the alternate endpoints for a retried invocation. |
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 java.util.List<Endpoint> getAlternateEndpoints(Exchange exchange)
getAlternateEndpoints
in interface FailoverStrategy
exchange
- the current Exchange
protected java.util.List<Endpoint> getEndpoints(Exchange exchange, boolean acceptCandidatesWithSameAddress)
exchange
- the current ExchangeacceptCandidatesWithSameAddress
- true to accept candidates with the same address
public Endpoint selectAlternateEndpoint(java.util.List<Endpoint> alternates)
selectAlternateEndpoint
in interface FailoverStrategy
a
- List of alternate endpoints if available
protected abstract Endpoint getNextAlternate(java.util.List<Endpoint> alternates)
alternates
- non-empty List of alternate endpoints
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |