ePOST API

rice.p2p.commonapi
Interface CancellableTask

All Known Implementing Classes:
DirectTimerTask, ExponentialBackoffScheduledMessage, PartitionHandler, ScheduledMessage, SocketCollectionManager.DeadChecker, SocketCollectionManager.MessageRetry, TimerTask

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()

ePOST API

Copyright © 2001-2005 - Rice Pastry.