Interface InvocationCancellation

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 InvocationCancellation
Trusted transport cancellation signal; registration never grants authority or promises undo.
  • Method Summary

    Modifier and Type
    Method
    Description
    listen(Runnable listener)
    Registers a cancellation listener, including an already observed cancellation.
  • Method Details

    • listen

      AutoCloseable listen(Runnable listener)
      Registers a cancellation listener, including an already observed cancellation.
      Parameters:
      listener - cooperative signal callback
      Returns:
      idempotent listener detachment owned by the physical invocation