Interface Cancellable

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Cancellable
A functional interface that has a single cancel method that can throw.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancel the action or free a resource.
  • Method Details

    • cancel

      void cancel() throws Throwable
      Cancel the action or free a resource.
      Throws:
      Throwable - if the implementation wishes to throw any type of exception