Package org.jitsi.utils.event
Interface EventEmitter
-
- All Implemented Interfaces:
public interface EventEmitter<EventHandlerType extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract UnitfireEvent(Function1<EventHandlerType, Unit> event)Fire an event (it may be fired synchronously or asynchronously depending on the implementation). abstract UnitaddHandler(EventHandlerType handler)abstract UnitremoveHandler(EventHandlerType handler)abstract List<EventHandlerType>getEventHandlers()-
-
Method Detail
-
fireEvent
abstract Unit fireEvent(Function1<EventHandlerType, Unit> event)
Fire an event (it may be fired synchronously or asynchronously depending on the implementation).
-
addHandler
abstract Unit addHandler(EventHandlerType handler)
-
removeHandler
abstract Unit removeHandler(EventHandlerType handler)
-
getEventHandlers
abstract List<EventHandlerType> getEventHandlers()
-
-
-
-