rice.environment.processing.simple
Class ProcessingRequest
java.lang.Object
rice.environment.processing.simple.ProcessingRequest
- All Implemented Interfaces:
- java.lang.Comparable<ProcessingRequest>, java.lang.Runnable, Cancellable
public class ProcessingRequest
- extends java.lang.Object
- implements java.lang.Runnable, java.lang.Comparable<ProcessingRequest>, Cancellable
Scheduling with a lower priority number will be executed first (is higher Priority)
- Author:
- Jeff Hoye
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProcessingRequest
public ProcessingRequest(Executable r,
Continuation c,
int priority,
long seq,
LogManager logging,
TimeSource timeSource,
SelectorManager selectorManager)
returnResult
public void returnResult(java.lang.Object o)
returnError
public void returnError(java.lang.Exception e)
getPriority
public int getPriority()
compareTo
public int compareTo(ProcessingRequest request)
- Specified by:
compareTo
in interface java.lang.Comparable<ProcessingRequest>
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
cancel
public boolean cancel()
- Specified by:
cancel
in interface Cancellable
- Returns:
- true if it was cancelled, false if it was already complete, or cancelled.
Copyright © 2001-2005 - Rice Pastry.