Interface CancelCallback

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 CancelCallback
Callback interface to be notified of the cancellation of a consumer. Prefer it over Consumer for a lambda-oriented syntax, if you don't need to implement all the application callbacks.
Since:
5.0
See Also: