Rice Pastry API

rice.p2p.commonapi
Interface CancellableTask

All Known Implementing Classes:
DeliveryTimerTask, DirectTimerTask, ExponentialBackoffScheduledMessage, PartitionHandler, ScheduledMessage, SocketCollectionManager.DeadChecker, SocketCollectionManager.MessageRetry, TimerTask, TimerWeakHashMap.HardLinkTimerTask, TimerWeakHashSet.HardLinkTimerTask

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

void run()
Main processing method for the CancellableTask object


cancel

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

scheduledExecutionTime

long scheduledExecutionTime()
DESCRIBE THE METHOD

Returns:
DESCRIBE THE RETURN VALUE

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.