rice.pastry
Class ExponentialBackoffScheduledMessage
java.lang.Object
rice.selector.TimerTask
rice.pastry.ScheduledMessage
rice.pastry.ExponentialBackoffScheduledMessage
- All Implemented Interfaces:
- java.lang.Comparable<TimerTask>, Cancellable, CancellableTask
public class ExponentialBackoffScheduledMessage
- extends ScheduledMessage
- Author:
- jeffh
To change the template for this generated type comment go to
Window>Preferences>Java>Code Generation>Code and Comments
Constructor Summary |
ExponentialBackoffScheduledMessage(PastryNode node,
Message msg,
Timer timer,
long initialDelay,
double expBase)
|
ExponentialBackoffScheduledMessage(PastryNode node,
Message msg,
Timer timer,
long initialDelay,
long initialPeriod,
double expBase,
long maxPeriod)
|
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 initialDelay,
long initialPeriod,
double expBase,
long maxPeriod)
- Parameters:
node
- msg
- initialPeriod
- expBase
-
ExponentialBackoffScheduledMessage
public ExponentialBackoffScheduledMessage(PastryNode node,
Message msg,
Timer timer,
long initialDelay,
double expBase)
cancel
public boolean cancel()
- Specified by:
cancel
in interface Cancellable
- Overrides:
cancel
in class ScheduledMessage
- Returns:
- true if it was cancelled, false if it was already complete, or cancelled.
run
public void run()
- Description copied from class:
ScheduledMessage
- deliver the message
- Specified by:
run
in interface CancellableTask
- Overrides:
run
in class ScheduledMessage
scheduledExecutionTime
public long scheduledExecutionTime()
- Specified by:
scheduledExecutionTime
in interface CancellableTask
- Overrides:
scheduledExecutionTime
in class TimerTask
Copyright © 2001-2005 - Rice Pastry.