This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface AbortListener
This interface provides a callback so something can be asynchronously notified that
the user has requested cancellation of a long-running background job. Otherwise,
the long-running job is only notified of the cancellation the next time updates
are sent to a StatusListener.
Called from the user interface when the user requests a cancel.
Method Detail
cancelRequested
void cancelRequested()
Called from the user interface when the user requests a cancel. Implementations of this
method should not block, but should quickly inform the associated long-running background
thread to abort its operation.