com.bankframe.ei.txnhandler.hostcache
Class Retry

java.lang.Object
  extended bycom.bankframe.ei.txnhandler.hostcache.Retry
Direct Known Subclasses:
DataSourceWrapper

Deprecated. Use the com.bankframe.serives.cache package instead

public abstract class Retry
extends java.lang.Object

This class provides a method for retrying an operation a specified number of times.


Constructor Summary
Retry()
          Deprecated.  
 
Method Summary
 boolean retry(long initialInterval, long decayRate, int maxRetries)
          Deprecated. This method retries an operation a specified number of times.
abstract  boolean runRetry()
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Retry

public Retry()
Deprecated. 
Method Detail

retry

public boolean retry(long initialInterval,
                     long decayRate,
                     int maxRetries)
              throws java.lang.InterruptedException
Deprecated. 
This method retries an operation a specified number of times.

Parameters:
initialInterval - The initial interval to wait before retrying again.
decayRate - The value added to the current interval upon every retry.
maxRetries - The maximum number of retries.
Returns:
Returns true if the operation was successful otherwise if the maxRetries was exceeded it will return false.
Throws:
java.lang.InterruptedException - If the thread was interrupted while sleeping.

runRetry

public abstract boolean runRetry()
Deprecated. 


Copyright © 2005, 2007, Oracle. All rights reserved.