Parsing Engine

danbikel.switchboard
Class AbstractSwitchboardUser.SBUserRetry

java.lang.Object
  extended by danbikel.util.proxy.Retry
      extended by 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

Field Summary
 
Fields inherited from class danbikel.util.proxy.Retry
retryIndefinitely
 
Constructor Summary
protected AbstractSwitchboardUser.SBUserRetry(Object stub, AbstractSwitchboardUser sbUser, int retries, long sleep)
           
 
Method Summary
protected  boolean keepTrying()
          Returns whether to keep trying a remote method in the face of failure.
protected static Object proxyFor(Object stub, AbstractSwitchboardUser sbUser, int retries, long sleep)
           
 
Methods inherited from class danbikel.util.proxy.Retry
invoke, proxyFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSwitchboardUser.SBUserRetry

protected AbstractSwitchboardUser.SBUserRetry(Object stub,
                                              AbstractSwitchboardUser sbUser,
                                              int retries,
                                              long sleep)
Method Detail

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

Parsing Engine

Author: Dan Bikel.