public static interface EventQueue.Event
Modifier and Type | Method and Description |
---|---|
default void |
handleException(Throwable e)
Handle an exception that was either generated by running the event, or by the
event queue's inability to run the event.
|
void |
run()
Run the event.
|
default void handleException(Throwable e)
e
- The exception. This will be a TimeoutException if the event hit
its deadline before it could be scheduled.
It will be a RejectedExecutionException if the event could not be
scheduled because the event queue has already been closed.
Otherweise, it will be whatever exception was thrown by run().