-
- All Implemented Interfaces:
-
org.jitsi.utils.event.EventEmitter
public final class AsyncEventEmitter<EventHandlerType extends Object> extends BaseEventEmitter<EventHandlerType>
An EventEmitter which fires events asynchronously.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<EventHandlerType>eventHandlers
-
Constructor Summary
Constructors Constructor Description AsyncEventEmitter(Executor executor)AsyncEventEmitter(Executor executor, List<EventHandlerType> initialHandlers)
-
Method Summary
Modifier and Type Method Description List<EventHandlerType>getEventHandlers()UnitfireEvent(Function1<EventHandlerType, Unit> event)Fire an event (it may be fired synchronously or asynchronously depending on the implementation). -
-
Constructor Detail
-
AsyncEventEmitter
AsyncEventEmitter(Executor executor)
-
AsyncEventEmitter
AsyncEventEmitter(Executor executor, List<EventHandlerType> initialHandlers)
-
-
Method Detail
-
getEventHandlers
List<EventHandlerType> getEventHandlers()
-
fireEvent
Unit fireEvent(Function1<EventHandlerType, Unit> event)
Fire an event (it may be fired synchronously or asynchronously depending on the implementation).
-
-
-
-