com.healthmarketscience.rmiio
Class RemoteRetry.SimpleAlways
java.lang.Object
com.healthmarketscience.rmiio.RemoteRetry
com.healthmarketscience.rmiio.RemoteRetry.Always
com.healthmarketscience.rmiio.RemoteRetry.SimpleAlways
- Enclosing class:
- RemoteRetry
public static class RemoteRetry.SimpleAlways
- extends RemoteRetry.Always
Simple implementation of Always retry strategy which uses the backoff
strategy from RemoteRetry.simpleBackOff(int, org.apache.commons.logging.Log)
. Please read warning in
RemoteRetry.Always
before using.
Method Summary |
void |
backOff(int numRetries,
org.apache.commons.logging.Log log)
Should delay for some implementation defined amount of time (to give the
callee, network, etc. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteRetry.SimpleAlways
public RemoteRetry.SimpleAlways()
backOff
public void backOff(int numRetries,
org.apache.commons.logging.Log log)
- Description copied from class:
RemoteRetry
- Should delay for some implementation defined amount of time (to give the
callee, network, etc. time to recover) given the number of previous
reattempts. Will be called iff shouldRetry() returned
true
.
Good implementations should implement some sort of increased delay
based on the number of reattempts.
- Specified by:
backOff
in class RemoteRetry
- Parameters:
numRetries
- number of previous reattemptslog
- debug log
Copyright © 2006–2016 Health Market Science. All rights reserved.