Interface AbortListener

All Known Implementing Classes:
OsmPbfSegmenter
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 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.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called from the user interface when the user requests a cancel.
  • Method Details

    • 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.