Class EventRegistry


  • public class EventRegistry
    extends java.lang.Object
    EventRegistry This class handles the registration of events and the handler that accompanies it. Each TelegramBot instance SHOULD have its own instance of this EventRegistry
    • Constructor Detail

      • EventRegistry

        public EventRegistry​(TelegramBot bot)
    • Method Detail

      • registerEvent

        public <E extends Event> void registerEvent​(java.lang.Class<E> eventType,
                                                    EventHandler<E> handler)
      • dispatch

        public <E extends Event> void dispatch​(E event)
      • getThreadPool

        public java.util.concurrent.ExecutorService getThreadPool()