Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## rice.pastry
Class ExponentialBackoffScheduledMessage

    java.lang.Object
      rice.selector.TimerTask
          rice.pastry.ScheduledMessage
              rice.pastry.ExponentialBackoffScheduledMessage

All Implemented Interfaces:
  java.lang.Comparable, 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

Field Summary

Fields inherited from class rice.pastry.ScheduledMessage
`localNode, msg`

Fields inherited from class rice.selector.TimerTask
`fixedRate, period, selector, seq`

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)`

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, setNextExecutionTime, setSelectorManager`

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 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)

Method Detail

### 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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.