public interface WebSocketSupport
Modifier and Type | Method and Description |
---|---|
WebSocketMessage.Opcode |
getOpcode(Message msg) |
String[] |
getOriginatedPeerLogicalGroups(Message msg) |
String |
getOriginatedPeerSubscribedPath(Message msg) |
String |
getOriginPeerID(Message msg) |
int |
getPayloadLength(Message msg) |
void |
setRecipientLogicalGroups(Message msg,
List<String> logicalGroupList)
Marks the message to be sent to all the WebSocketPeers which belongs to
given logical groups.
|
void |
setRecipientPeers(Message msg,
String... peerIdList)
Marks the message to be sent to all the WebSocketPeers which corresponds
to the given peerIds.
|
void |
setRecipientSubscriberPaths(Message msg,
List<String> subscriberPathList)
Marks a message to be sent to all the WebSocketPeers which are connected to
given subscriber paths.
|
String getOriginPeerID(Message msg)
msg
- Message
which contains a WebSocketMessage
as its
current payloadnull
String[] getOriginatedPeerLogicalGroups(Message msg)
msg
- Message
which contains a WebSocketMessage
as its
current payloadnull
String getOriginatedPeerSubscribedPath(Message msg)
msg
- Message
which contains a WebSocketMessage
as its
current payloadnull
WebSocketMessage.Opcode getOpcode(Message msg)
msg
- Message
which contains a WebSocketMessage
as its
current payloadWebSocketMessage.Opcode
of the WebSocketMessageint getPayloadLength(Message msg)
msg
- Message
which contains a WebSocketMessage
as its
current payloadvoid setRecipientSubscriberPaths(Message msg, List<String> subscriberPathList)
msg
- message which should be sent to the subscriber pathssubscriberPathList
- List of Strings which contains the subscriberPaths.void setRecipientLogicalGroups(Message msg, List<String> logicalGroupList)
msg
- message which should be sent to the logical groupslogicalGroupList
- List of Strings which contains valid name of logical groupsvoid setRecipientPeers(Message msg, String... peerIdList)
msg
- message which should be sent to the peerspeerIdList
- List of Strings, or comma separated list of Strings, or array of String
which contains the peerIDs or a single String which contains the
peerIdCopyright © 2010–2016 AdroitLogic. All rights reserved.