Interface Cancelable

All Known Subinterfaces:
Terminable
All Known Implementing Classes:
FailedFuture, FutureWork, ParallelFuture, SequencedFuture

public interface Cancelable
Interface for objects that support being cancelled.
Since:
1.0
Version:
2024-08-17
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cancel(String reason)
    Cancel the object with the specified reason code.
  • Method Details

    • cancel

      void cancel(String reason)
      Cancel the object with the specified reason code.
      Parameters:
      reason - the reason for the cancel