Interface BinaryMessageAction
public interface BinaryMessageAction
Binary WebSocket message.
-
Method Summary
Modifier and TypeMethodDescriptionaction()static BinaryMessageActionbinaryMessageAction(ByteArray payload, MessageAction action) Build a binary websocket message action.static BinaryMessageActioncontinueWith(ByteArray payload) Build a binary WebSocket message to be processed.static BinaryMessageActioncontinueWith(BinaryMessage binaryMessage) Build a binary WebSocket message to be processed.static BinaryMessageActiondrop()Build a binary WebSocket message to be dropped.payload()
-
Method Details
-
action
MessageAction action()- Returns:
- The action associated with this message.
-
payload
ByteArray payload()- Returns:
- The payload of this message.
-
continueWith
Build a binary WebSocket message to be processed.- Parameters:
payload- The binary message payload.- Returns:
- The
BinaryMessageActioncontaining the message to be processed.
-
continueWith
Build a binary WebSocket message to be processed.- Parameters:
binaryMessage- The binary message payload.- Returns:
- The
BinaryMessageActioncontaining the message to be processed.
-
drop
Build a binary WebSocket message to be dropped.- Returns:
- The
BinaryMessageActiondropping the message.
-
binaryMessageAction
Build a binary websocket message action.- Parameters:
payload- the binary payload for the messageaction- the action to take for the message.- Returns:
- The
BinaryMessageActioncontaining the message and the action.
-