Package nl.harm27.obswebsocket.listener
Class GeneralEventListener
- java.lang.Object
-
- nl.harm27.obswebsocket.listener.GeneralEventListener
-
- All Implemented Interfaces:
EventListener
public abstract class GeneralEventListener extends Object implements EventListener
The EventListener for the events that are part of the General or Other category.
-
-
Constructor Summary
Constructors Constructor Description GeneralEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbroadcastCustomMessage(BroadcastCustomMessage broadcastCustomMessage)Implement this method to process BroadcastCustomMessage events.voidcallEvent(BaseEvent baseEvent)voidexiting(Exiting exiting)Implement this method to process Exiting events.Map<EventType,Class<?>>getSupportedEvents()voidheartbeat(Heartbeat heartbeat)Implement this method to process Heartbeat events.
-
-
-
Method Detail
-
getSupportedEvents
public final Map<EventType,Class<?>> getSupportedEvents()
- Specified by:
getSupportedEventsin interfaceEventListener
-
callEvent
public final void callEvent(BaseEvent baseEvent)
- Specified by:
callEventin interfaceEventListener
-
exiting
public void exiting(Exiting exiting)
Implement this method to process Exiting events.- Parameters:
exiting- The received event.
-
heartbeat
public void heartbeat(Heartbeat heartbeat)
Implement this method to process Heartbeat events.- Parameters:
heartbeat- The received event.
-
broadcastCustomMessage
public void broadcastCustomMessage(BroadcastCustomMessage broadcastCustomMessage)
Implement this method to process BroadcastCustomMessage events.- Parameters:
broadcastCustomMessage- The received event.
-
-