Interface AbortableRunnable

All Superinterfaces:
Runnable

public interface AbortableRunnable extends Runnable
An interface that can optionally use an AtomicBoolean as a signal to abort its execution.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Sets the abort object.

    Methods inherited from interface java.lang.Runnable

    run
  • Method Details

    • setAbort

      void setAbort(AtomicBoolean abort)
      Sets the abort object.
      Parameters:
      abort - The abort object.