-
- All Implemented Interfaces:
-
org.jitsi.utils.event.EventEmitter
public final class SyncEventEmitter<EventHandlerType extends Object> extends BaseEventEmitter<EventHandlerType>
An EventEmitter which fires events synchronously.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<EventHandlerType>eventHandlers
-
Constructor Summary
Constructors Constructor Description SyncEventEmitter()SyncEventEmitter(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
-
SyncEventEmitter
SyncEventEmitter()
-
SyncEventEmitter
SyncEventEmitter(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).
-
-
-
-