post With Timeout
public final static T postWithTimeout<T extends Event>(T event, Long timeout, TimeUnit timeUnit, EventProcessingType processingType)
Posts an event to be handled within a specified timeout by all registered hooks for the event's class.
Return
The event after processing.
Parameters
T
The type of the event.
event
The event to post.
timeout
The timeout within which the event should be handled.
time Unit
The time unit of the timeout.
processing Type
The type of processing (Sync, Async, HandlerAsync).