Interface Observer<E extends GenericEvent<?>>

  • Type Parameters:
    E - the element type
    All Known Subinterfaces:
    ObserverDescriptor<E,O,EM>
    All Known Implementing Classes:
    ObserverDescriptorImpl
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.


    @FunctionalInterface
    public interface Observer<E extends GenericEvent<?>>
    The listener of an event subscriber to be fed with events by a event publisher.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onEvent​(E aEvent)
      The listener implementing this interface is notified of an event via this method.
    • Method Detail

      • onEvent

        void onEvent​(E aEvent)
        The listener implementing this interface is notified of an event via this method. The publisher pushes the event to the subscriber.
        Parameters:
        aEvent - aEvent The event to be pushed from the publisher to the subscriber.