Package io.manebot.event
Interface EventDispatcher
-
public interface EventDispatcher
-
-
Method Summary
Modifier and Type Method Description <T extends Event>
Texecute(T event)
Fires an event.<T extends Event>
java.util.concurrent.Future<T>executeAsync(T event)
Fires an event asynchronously.
-
-
-
Method Detail
-
execute
<T extends Event> T execute(T event) throws EventExecutionException
Fires an event.- Type Parameters:
T
- Event type.- Parameters:
event
- Event to fire.- Returns:
- Event
- Throws:
EventExecutionException
- if an exception occurred executing the event.
-
executeAsync
<T extends Event> java.util.concurrent.Future<T> executeAsync(T event)
Fires an event asynchronously.- Type Parameters:
T
- Event type.- Parameters:
event
- Event to fire.- Returns:
- Event future.
-
-