public class VMRouter
extends java.lang.Object
Constructor and Description |
---|
VMRouter()
Instantiates a VMRouter object.
|
Modifier and Type | Method and Description |
---|---|
Response |
routeMessage(java.lang.String channelName,
RawMessage rawMessage)
Dispatches a message to a channel, specified by the deployed channel name.
|
Response |
routeMessage(java.lang.String channelName,
java.lang.String message)
Dispatches a message to a channel, specified by the deployed channel name.
|
Response |
routeMessageByChannelId(java.lang.String channelId,
RawMessage rawMessage)
Dispatches a message to a channel, specified by the deployed channel ID.
|
Response |
routeMessageByChannelId(java.lang.String channelId,
java.lang.String message)
Dispatches a message to a channel, specified by the deployed channel ID.
|
public Response routeMessage(java.lang.String channelName, java.lang.String message)
channelName
- The name of the deployed channel to dispatch the message to.message
- The message to dispatch to the channel.public Response routeMessage(java.lang.String channelName, RawMessage rawMessage)
channelName
- The name of the deployed channel to dispatch the message to.rawMessage
- A RawMessage object to dispatch to the channel.public Response routeMessageByChannelId(java.lang.String channelId, java.lang.String message)
channelId
- The ID of the deployed channel to dispatch the message to.message
- The message to dispatch to the channel.public Response routeMessageByChannelId(java.lang.String channelId, RawMessage rawMessage)
channelId
- The ID of the deployed channel to dispatch the message to.rawMessage
- A RawMessage object to dispatch to the channel.