Rice Pastry API

rice.pastry
Class ExponentialBackoffScheduledMessage

java.lang.Object
  extended by rice.selector.TimerTask
      extended by rice.pastry.ScheduledMessage
          extended by rice.pastry.ExponentialBackoffScheduledMessage
All Implemented Interfaces:
java.lang.Comparable, 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

Field Summary
 
Fields inherited from class rice.pastry.ScheduledMessage
localNode, msg
 
Fields inherited from class rice.selector.TimerTask
fixedRate, nextExecutionTime, period, seq
 
Constructor Summary
ExponentialBackoffScheduledMessage(PastryNode node, Message msg, Timer timer, long initialDelay, double expBase)
           
ExponentialBackoffScheduledMessage(PastryNode node, Message msg, Timer timer, long delay, long initialPeriod, double expBase)
           
 
Method Summary
 boolean cancel()
           
 void run()
          deliver the message
 long scheduledExecutionTime()
           
 
Methods inherited from class rice.pastry.ScheduledMessage
getLocalNode, getMessage, toString
 
Methods inherited from class rice.selector.TimerTask
compareTo, execute, isCancelled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExponentialBackoffScheduledMessage

public ExponentialBackoffScheduledMessage(PastryNode node,
                                          Message msg,
                                          Timer timer,
                                          long delay,
                                          long initialPeriod,
                                          double expBase)
Parameters:
node -
msg -
initialPeriod -
expBase -

ExponentialBackoffScheduledMessage

public ExponentialBackoffScheduledMessage(PastryNode node,
                                          Message msg,
                                          Timer timer,
                                          long initialDelay,
                                          double expBase)
Method Detail

cancel

public boolean cancel()
Specified by:
cancel in interface CancellableTask
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

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection