Interface DueWork.Registration

All Superinterfaces:
AutoCloseable
Enclosing interface:
DueWork

public static interface DueWork.Registration extends AutoCloseable
A participant's place in a loop; closing it removes the participant.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Removes the participant; it is not run again once a run in progress ends.
    void
    Asks this one participant to run again on the loop's next run (DW-2).
  • Method Details

    • wake

      void wake()
      Asks this one participant to run again on the loop's next run (DW-2).
    • close

      void close()
      Removes the participant; it is not run again once a run in progress ends.
      Specified by:
      close in interface AutoCloseable