org.apache.cxf.clustering
Class RetryStrategy

java.lang.Object
  extended by org.apache.cxf.clustering.AbstractStaticFailoverStrategy
      extended by org.apache.cxf.clustering.SequentialStrategy
          extended by org.apache.cxf.clustering.RetryStrategy
All Implemented Interfaces:
org.apache.cxf.clustering.FailoverStrategy

public class RetryStrategy
extends SequentialStrategy

This strategy simply retries the invocation using the same Endpoint (CXF-2036).

Author:
Dennis Kieselhorst

Constructor Summary
RetryStrategy()
           
 
Method Summary
 List<org.apache.cxf.endpoint.Endpoint> getAlternateEndpoints(org.apache.cxf.message.Exchange exchange)
          Get the alternate endpoints for this invocation.
 int getMaxNumberOfRetries()
           
 void setMaxNumberOfRetries(int maxNumberOfRetries)
           
protected  boolean stillTheSameAddress()
           
 
Methods inherited from class org.apache.cxf.clustering.SequentialStrategy
getNextAlternate
 
Methods inherited from class org.apache.cxf.clustering.AbstractStaticFailoverStrategy
getAlternateAddresses, getDelayBetweenRetries, getEndpoints, selectAlternateAddress, selectAlternateEndpoint, setAlternateAddresses, setDelayBetweenRetries
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetryStrategy

public RetryStrategy()
Method Detail

getAlternateEndpoints

public List<org.apache.cxf.endpoint.Endpoint> getAlternateEndpoints(org.apache.cxf.message.Exchange exchange)
Description copied from class: AbstractStaticFailoverStrategy
Get the alternate endpoints for this invocation.

Specified by:
getAlternateEndpoints in interface org.apache.cxf.clustering.FailoverStrategy
Overrides:
getAlternateEndpoints in class AbstractStaticFailoverStrategy
Parameters:
exchange - the current Exchange
Returns:
a List of alternate endpoints if available

stillTheSameAddress

protected boolean stillTheSameAddress()

setMaxNumberOfRetries

public void setMaxNumberOfRetries(int maxNumberOfRetries)

getMaxNumberOfRetries

public int getMaxNumberOfRetries()


Apache CXF