Package net.dv8tion.jda.api.hooks
EventManager and EventListener implementations and interfaces.
Every JDA instance has an EventManager
implementation
that deals with the handling and forwarding of Events
.
The default manager is the InterfacedEventManager
which uses the EventListener
to listen for events.
The ListenerAdapter
is an implementation which provides
methods for each event of net.dv8tion.jda.api.events
The AnnotatedEventManager
can forward events directly to methods that have the SubscribeEvent
annotation.
Note: All of the standard EventManager implementations are single-threaded
-
Interface Summary Interface Description EventListener JDA pushesGenericEvents
to the registered EventListeners.IEventManager An interface for JDA's EventManager system.VoiceDispatchInterceptor Interceptor used to handle critical voice dispatches.VoiceDispatchInterceptor.VoiceUpdate Abstraction for all relevant voice updates -
Class Summary Class Description AnnotatedEventManager Implementation forIEventManager
which checks forSubscribeEvent
annotations on both static and member methods.InterfacedEventManager AnIEventManager
implementation that uses theEventListener
interface for event listeners.ListenerAdapter An abstract implementation ofEventListener
which dividesEvents
for you.VoiceDispatchInterceptor.VoiceServerUpdate Wrapper for a Voice Server UpdateVoiceDispatchInterceptor.VoiceStateUpdate Wrapper for a Voice State Update -
Annotation Types Summary Annotation Type Description SubscribeEvent Annotation used by theAnnotatedEventManager
this is only picked up if the event manager implementation has been set to use theAnnotatedEventManager
viaJDABuilder.setEventManager(IEventManager)