Interface CancelHandler


public interface CancelHandler
Callback interface to be used in situations where a process is started that may be canceled for some reason.

This interface has to be provided by the process executor and can be used by a process consumer to cancel a running process.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancel the running process.
  • Method Details

    • cancel

      void cancel()
      Cancel the running process. If the process has already been canceled, this method does nothing.

      NOTE: Implementations should be aware that this method may be called multiple times.