Package com.slack.api.socket_mode.queue
Interface SocketModeMessageQueue
- All Known Implementing Classes:
ConcurrentLinkedMessageQueue
public interface SocketModeMessageQueue
Abstraction of a message queue that provides
a way to handle multiple messages at the same time in SocketModeClient.
-
Method Summary
-
Method Details
-
add
Adds a new message from the Socket Mode server.- Parameters:
message- the raw message from the Socket Mode server
-
poll
String poll()Pops a message and removes it from the queue.- Returns:
- a raw message from the Socket Mode server
-