-
- Type Parameters:
E- the base event type
- All Known Implementing Classes:
SimpleEventBus
public interface EventBus<E>An event bus.- Since:
- 1.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceEventBus.EventExceptionHandlerAn event exception handler.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidpost(E event)Posts an event to all registered subscribers.voidpost(E event, @NotNull OptionalInt order)Posts an event to all registered subscribers at the order provided inorder.
-
-
-
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 inorder.- Parameters:
event- the eventorder- the order- Since:
- 1.0.0
-
-