Interface Watcher<T>

    • Method Detail

      • eventReceived

        void eventReceived​(Watcher.Action action,
                           T resource)
      • onClose

        default void onClose()
        Invoked when the watcher is gracefully closed.
      • onClose

        void onClose​(WatcherException cause)
        Invoked when the watcher closes due to an Exception.
        Parameters:
        cause - What caused the watcher to be closed.