Interface TextMessageAction
public interface TextMessageAction
Text WebSocket message.
-
Method Summary
Modifier and TypeMethodDescriptionaction()static TextMessageActioncontinueWith(TextMessage textMessage) Build a text WebSocket message to be processed.static TextMessageActioncontinueWith(String payload) Build a text WebSocket message to be processed.static TextMessageActiondrop()Build a text WebSocket message to be dropped.payload()static TextMessageActiontextMessageAction(String payload, MessageAction action) Build a websocket text message action.
-
Method Details
-
action
MessageAction action()- Returns:
- The action associated with this message.
-
payload
String payload()- Returns:
- The payload of this message.
-
continueWith
Build a text WebSocket message to be processed.- Parameters:
payload- The text message payload.- Returns:
- The
TextMessageActioncontaining the message to be processed.
-
continueWith
Build a text WebSocket message to be processed.- Parameters:
textMessage- the text message payload- Returns:
- The
TextMessageActioncontaining the message to be processed.
-
drop
Build a text WebSocket message to be dropped.- Returns:
- The
TextMessageActiondropping the message.
-
textMessageAction
Build a websocket text message action.- Parameters:
payload- the binary payload for the messageaction- the action to take for the message.- Returns:
- The
TextMessageActioncontaining the message and the action.
-