danbikel.switchboard
Class AbstractSwitchboardUser.SBUserRetry
java.lang.Object
danbikel.util.proxy.Retry
danbikel.switchboard.AbstractSwitchboardUser.SBUserRetry
- All Implemented Interfaces:
- Serializable, InvocationHandler
- Enclosing class:
- AbstractSwitchboardUser
protected static class AbstractSwitchboardUser.SBUserRetry
- extends Retry
Provides an appropriate overridden definition of Retry.keepTrying()
that checks the value of AbstractSwitchboardUser.timeToDie
.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSwitchboardUser.SBUserRetry
protected AbstractSwitchboardUser.SBUserRetry(Object stub,
AbstractSwitchboardUser sbUser,
int retries,
long sleep)
proxyFor
protected static Object proxyFor(Object stub,
AbstractSwitchboardUser sbUser,
int retries,
long sleep)
keepTrying
protected boolean keepTrying()
- Description copied from class:
Retry
- Returns whether to keep trying a remote method in the face of failure.
This method is guaranteed to be called before each attempt at a
method invocation. By overriding this method, subclasses may
perform arbitrary tests to determine whether to stop re-trying
the RMI server. The default implementation simply returns
true
.
- Overrides:
keepTrying
in class Retry
- Returns:
true
under all circumstances
Author: Dan Bikel.