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 pushesGenericEventsto 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 forIEventManagerwhich checks forSubscribeEventannotations on both static and member methods.InterfacedEventManager AnIEventManagerimplementation that uses theEventListenerinterface for event listeners.ListenerAdapter An abstract implementation ofEventListenerwhich dividesEventsfor 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 theAnnotatedEventManagerthis is only picked up if the event manager implementation has been set to use theAnnotatedEventManagerviaJDABuilder.setEventManager(IEventManager)