Interface Observable<T>

    • Method Detail

      • registerListener

        void registerListener​(Listener<T> listener)
        Register listener for notification type T. Multiple listeners can be added for the same type.
        Parameters:
        listener - This is the listener which will be invoked incase of an Notification.
      • unregisterListener

        void unregisterListener​(Listener<T> listener)
        Remove a listener.
        Parameters:
        listener - the listener which needs to be removed.
      • unregisterAllListeners

        void unregisterAllListeners()
        Remove all listeners for a given type.
      • getType

        java.lang.String getType()
        Get the notification type.
        Returns:
        Notification type.