Interface WatchHandle

All Superinterfaces:
AutoCloseable

public interface WatchHandle extends AutoCloseable
Handle of a running watch.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Same as stop().
    boolean
    Returns whether stop() was called.
    void
    Stops polling.
  • Method Details

    • stop

      void stop()
      Stops polling. Idempotent.
    • isStopped

      boolean isStopped()
      Returns whether stop() was called.
      Returns:
      true once stopped
    • close

      default void close()
      Same as stop().
      Specified by:
      close in interface AutoCloseable