All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.slack.api.rtm.RTMEventsDispatcher Maven / Gradle / Ivy

There is a newer version: 1.39.0
Show newest version
package com.slack.api.rtm;

import com.slack.api.model.event.Event;

/**
 * Real Time Messaging API requests dispatcher.
 */
public interface RTMEventsDispatcher {

    /**
     * Registers a new EventHandler.
     */
    void register(RTMEventHandler handler);

    /**
     * Removes a EventHandler.
     */
    void deregister(RTMEventHandler handler);

    /**
     * Dispatches requests to appropriate event handlers.
     */
    void dispatch(String json);

    /**
     * Converts this dispatcher to {@link RTMMessageHandler}.
     */
    RTMMessageHandler toMessageHandler();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy