rice.pastry
Class ScheduledMessage
java.lang.Object
rice.selector.TimerTask
rice.pastry.ScheduledMessage
-
All Implemented Interfaces:
- java.lang.Comparable, CancellableTask
-
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 15:38:49 +0100 (Tue, 22
Nov 2005) jeffh $
- Author:
- Peter Druschel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
localNode
protected PastryNode localNode
msg
protected Message msg
ScheduledMessage
public ScheduledMessage(PastryNode pn,
Message msg)
- Constructor
- Parameters:
-
the
- message
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 CancellableTask
- Overrides:
-
cancel
in class TimerTask
-
- Returns:
- true if it was cancelled, false if it was already complete, or cancelled.
Copyright © 2001-2005 - Rice Pastry.