- 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
| Modifier and Type |
Method |
Description |
void |
add(java.lang.String message) |
Adds a new message from the Socket Mode server.
|
java.lang.String |
poll() |
Pops a message and removes it from the queue.
|
-
Method Details
-
void add(java.lang.String message)
Adds a new message from the Socket Mode server.
- Parameters:
message - the raw message from the Socket Mode server
-
java.lang.String poll()
Pops a message and removes it from the queue.
- Returns:
- a raw message from the Socket Mode server