Interface ProgressSink.Subscription

Enclosing interface:
ProgressSink

public static interface ProgressSink.Subscription
Handle returned from ProgressSink.subscribe(java.lang.String, java.util.function.Consumer<com.tnsai.reliability.Progress>). Calling cancel() removes the listener. The same handle may be cancelled multiple times — second and subsequent calls are no-ops.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
    true after cancel(); useful for sanity checks.
  • Method Details

    • cancel

      void cancel()
    • isCancelled

      boolean isCancelled()
      true after cancel(); useful for sanity checks.