Interface IEventBus

All Superinterfaces:
IEventRegistry
All Known Implementing Classes:
EventBus

public interface IEventBus extends IEventRegistry
  • Method Details

    • dispatch

      default <KeyType, EventType extends IEvent<KeyType>> EventType dispatch(@Nonnull Class<EventType> eventClass)
    • dispatchAsync

      default <EventType extends IAsyncEvent<Void>> CompletableFuture<EventType> dispatchAsync(@Nonnull Class<EventType> eventClass)
    • dispatchFor

      default <KeyType, EventType extends IEvent<KeyType>> IEventDispatcher<EventType,EventType> dispatchFor(@Nonnull Class<? super EventType> eventClass)
    • dispatchFor

      <KeyType, EventType extends IEvent<KeyType>> IEventDispatcher<EventType,EventType> dispatchFor(@Nonnull Class<? super EventType> var1, @Nullable KeyType var2)
    • dispatchForAsync

      default <KeyType, EventType extends IAsyncEvent<KeyType>> IEventDispatcher<EventType,CompletableFuture<EventType>> dispatchForAsync(@Nonnull Class<? super EventType> eventClass)
    • dispatchForAsync

      <KeyType, EventType extends IAsyncEvent<KeyType>> IEventDispatcher<EventType,CompletableFuture<EventType>> dispatchForAsync(@Nonnull Class<? super EventType> var1, @Nullable KeyType var2)