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:
  java.lang.Comparable, Cancellable, CancellableTask

Direct Known Subclasses:
  ExponentialBackoffScheduledMessage

    public class ScheduledMessage

extends TimerTask

A class that represents scheduled message events

Version:
  $Id: ScheduledMessage.java 2808 2005-11-22 15:38:49 +0100 (Tue, 22 Nov 2005) jeffh $
Author:
  Peter Druschel

Field Summary
`protected PastryNode` | `localNode`
`protected Message` | `msg`

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

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

Method Summary
`boolean` | `cancel()`
`PastryNode` | `getLocalNode()`
`Message` | `getMessage()` Returns the message
`void` | `run()` deliver the message
`java.lang.String` | `toString()`

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

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

Field Detail

### localNode

    protected PastryNode localNode

### msg

    protected Message msg

Constructor Detail

### ScheduledMessage

    public ScheduledMessage(PastryNode pn,
                            Message msg)

  Constructor

  Parameters:
    `the` - message

Method Detail

### getMessage

    public Message getMessage()

  Returns the message

  Returns:
    the message

### getLocalNode

    public PastryNode getLocalNode()

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

  Overrides:
    `toString` in class `java.lang.Object`

### cancel

    public boolean cancel()

  Specified by:
    `cancel` in interface `Cancellable`
  Overrides:
    `cancel` in class `TimerTask`
  Returns:
    true if it was cancelled, false if it was already complete, or cancelled.

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.