Package io.manebot.chat
Interface ChatDispatcher
-
public interface ChatDispatcher
-
-
Method Summary
Modifier and Type Method Description void
execute(ChatMessage chatMessage)
Dispatches a chat messagejava.util.concurrent.Future<?>
executeAsync(ChatMessage chatMessage)
Dispatches a chat message asynchronously.
-
-
-
Method Detail
-
execute
void execute(ChatMessage chatMessage) throws ChatException
Dispatches a chat message- Parameters:
chatMessage
- ChatMessage instance to dispatch.- Throws:
ChatException
- if there was an exception executing the chat.
-
executeAsync
java.util.concurrent.Future<?> executeAsync(ChatMessage chatMessage)
Dispatches a chat message asynchronously.- Parameters:
chatMessage
- ChatMessage instance to dispatch.- Returns:
- Future representing the chat future execution.
-
-