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 ScheduledMessage

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

All Implemented Interfaces:
  CancellableTask, java.lang.Comparable

Direct Known Subclasses:
  DirectTimerTask, ExponentialBackoffScheduledMessage

public class ScheduledMessage
extends TimerTask

A class that represents scheduled message events

Version:
  $Id: ScheduledMessage.java 2808 2005-11-22 14:38:49Z jeffh $
Author:
  Peter Druschel

Field Summary

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

Constructor Summary
`ScheduledMessage(PastryNode pn, Message msg)` Constructor

Method Summary
`boolean` | `cancel()` DESCRIBE THE METHOD
`PastryNode` | `getLocalNode()` Gets the LocalNode attribute of the ScheduledMessage object
`Message` | `getMessage()` Returns the message
`void` | `run()` deliver the message
`java.lang.String` | `toString()` DESCRIBE THE METHOD

Methods inherited from class rice.selector.TimerTask
`compareTo, execute, isCancelled, scheduledExecutionTime`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### ScheduledMessage

    public ScheduledMessage(PastryNode pn,
                            Message msg)

  Constructor

Parameters:
  `pn` - DESCRIBE THE PARAMETER
  `msg` - DESCRIBE THE PARAMETER

Method Detail

### getMessage

    public Message getMessage()

  Returns the message

  Returns:
    the message

### getLocalNode

    public PastryNode getLocalNode()

  Gets the LocalNode attribute of the ScheduledMessage object

  Returns:
    The LocalNode value

### run

    public void run()

  deliver the message

  Specified by:
    `run` in interface `CancellableTask`
  Specified by:
    `run` in class `TimerTask`

### toString

    public java.lang.String toString()

  DESCRIBE THE METHOD

  Returns:
    DESCRIBE THE RETURN VALUE

### cancel

    public boolean cancel()

  DESCRIBE THE METHOD

  Specified by:
    `cancel` in interface `CancellableTask`
  Overrides:
    `cancel` in class `TimerTask`
  Returns:
    DESCRIBE THE RETURN VALUE

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.