Interface EventBus<E>

  • Type Parameters:
    E - the base event type
    All Known Implementing Classes:
    SimpleEventBus

    public interface EventBus<E>
    An event bus.
    Since:
    1.0.0
    • Method Detail

      • post

        default void post​(@NotNull
                          E event)
        Posts an event to all registered subscribers.
        Parameters:
        event - the event
        Since:
        1.0.0
      • post

        void post​(@NotNull
                  E event,
                  @NotNull
                  @NotNull OptionalInt order)
        Posts an event to all registered subscribers at the order provided in order.
        Parameters:
        event - the event
        order - the order
        Since:
        1.0.0