Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.