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 Detail

      • cancel

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