Package com.slack.api.app_backend.events
Interface EventsDispatcher
- All Known Implementing Classes:
EventsDispatcherImpl
public interface EventsDispatcher
Events API requests dispatcher.
-
Method Summary
Modifier and TypeMethodDescriptionvoidderegister(EventHandler<? extends EventsApiPayload<?>> handler) Removes an EventHandler.voidDispatches requests to appropriate event handlers.voidEnqueues a JSON payload to the internal queue.booleanisEmpty()booleanvoidregister(EventHandler<? extends EventsApiPayload<?>> handler) Registers a new EventHandler.voidstart()Starts the internal thread to handle requests.voidstop()Stops the internal thread to handle requests.
-
Method Details
-
isRunning
boolean isRunning() -
isEmpty
boolean isEmpty() -
register
Registers a new EventHandler. -
deregister
Removes an EventHandler. -
dispatch
Dispatches requests to appropriate event handlers. -
enqueue
Enqueues a JSON payload to the internal queue. -
start
void start()Starts the internal thread to handle requests. -
stop
void stop()Stops the internal thread to handle requests.
-