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:
  ExponentialBackoffScheduledMessage

public class ScheduledMessage
extends TimerTask

A class that represents scheduled message events

Version:
  $Id: ScheduledMessage.java,v 1.7 2005/03/11 00:58:11 jeffh Exp $
Author:
  Peter Druschel

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, 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.