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.

Author:
Alan Mislove, Jeff Hoye

Method Summary
 boolean cancel()
           
 void run()
           
 long scheduledExecutionTime()
           
 

Method Detail

run

void run()

cancel

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

scheduledExecutionTime

long scheduledExecutionTime()

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection