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 void
broadcastCustomMessage(BroadcastCustomMessage broadcastCustomMessage)
Implement this method to process BroadcastCustomMessage events.void
callEvent(BaseEvent baseEvent)
void
exiting(Exiting exiting)
Implement this method to process Exiting events.Map<EventType,Class<?>>
getSupportedEvents()
void
heartbeat(Heartbeat heartbeat)
Implement this method to process Heartbeat events.
-
-
-
Method Detail
-
getSupportedEvents
public final Map<EventType,Class<?>> getSupportedEvents()
- Specified by:
getSupportedEvents
in interfaceEventListener
-
callEvent
public final void callEvent(BaseEvent baseEvent)
- Specified by:
callEvent
in 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.
-
-