Rice Pastry API

rice.p2p.commonapi
Interface CancellableTask

All Known Implementing Classes:
TimerTask

public interface CancellableTask

This class represents a task which can be cancelled by the caller.

Version:
$Id: pretty.settings 2305 2005-03-11 20:22:33Z jeffh $
Author:
Alan Mislove, Jeff Hoye

Method Summary
 boolean cancel()
           
 void run()
          Main processing method for the CancellableTask object
 long scheduledExecutionTime()
          DESCRIBE THE METHOD
 

Method Detail

run

public void run()
Main processing method for the CancellableTask object


cancel

public boolean cancel()
Returns:
true if it was cancelled, false if it was already complete, or cancelled.

scheduledExecutionTime

public long scheduledExecutionTime()
DESCRIBE THE METHOD

Returns:
DESCRIBE THE RETURN VALUE

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection