rice.pastry
Class ExponentialBackoffScheduledMessage
java.lang.Object
rice.selector.TimerTask
rice.pastry.ScheduledMessage
rice.pastry.ExponentialBackoffScheduledMessage
- All Implemented Interfaces:
- CancellableTask, java.lang.Comparable
- public class ExponentialBackoffScheduledMessage
- extends ScheduledMessage
- Version:
- $Id: pretty.settings 2305 2005-03-11 20:22:33Z jeffh $
- Author:
- jeffh To change the template for this generated type comment go to
Window>Preferences>Java>Code Generation>Code and Comments
|
Method Summary |
boolean |
cancel()
DESCRIBE THE METHOD |
void |
run()
Main processing method for the ExponentialBackoffScheduledMessage object |
long |
scheduledExecutionTime()
DESCRIBE THE METHOD |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ExponentialBackoffScheduledMessage
public ExponentialBackoffScheduledMessage(PastryNode node,
Message msg,
Timer timer,
long delay,
long initialPeriod,
double expBase)
- Parameters:
node - msg - initialPeriod - expBase - timer - DESCRIBE THE PARAMETERdelay - DESCRIBE THE PARAMETER
ExponentialBackoffScheduledMessage
public ExponentialBackoffScheduledMessage(PastryNode node,
Message msg,
Timer timer,
long initialDelay,
double expBase)
- Constructor for ExponentialBackoffScheduledMessage.
- Parameters:
node - DESCRIBE THE PARAMETERmsg - DESCRIBE THE PARAMETERtimer - DESCRIBE THE PARAMETERinitialDelay - DESCRIBE THE PARAMETERexpBase - DESCRIBE THE PARAMETER
cancel
public boolean cancel()
- DESCRIBE THE METHOD
- Specified by:
cancel in interface CancellableTask- Overrides:
cancel in class ScheduledMessage
- Returns:
- DESCRIBE THE RETURN VALUE
run
public void run()
- Main processing method for the ExponentialBackoffScheduledMessage object
- Specified by:
run in interface CancellableTask- Overrides:
run in class ScheduledMessage
scheduledExecutionTime
public long scheduledExecutionTime()
- DESCRIBE THE METHOD
- Specified by:
scheduledExecutionTime in interface CancellableTask- Overrides:
scheduledExecutionTime in class TimerTask
- Returns:
- DESCRIBE THE RETURN VALUE
Copyright © 2001-2005 - Rice Pastry.