Interface Watcher<T>

Type Parameters:
T - is the type of the updates.

public interface Watcher<T>
Watches updates of type T.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Method called in case there is an error watching for updates.
    void
    onUpdate(T update)
    Method called in case of success getting an update.
  • Method Details

    • onUpdate

      void onUpdate(T update)
      Method called in case of success getting an update.
      Parameters:
      update - the instance of type T
    • onError

      void onError(Throwable e)
      Method called in case there is an error watching for updates.
      Parameters:
      e - the throwable exception that was caught