public class VMRouter extends Object
Constructor and Description |
---|
VMRouter()
Instantiates a VMRouter object.
|
Modifier and Type | Method and Description |
---|---|
Response |
routeMessage(String channelName,
RawMessage rawMessage)
Dispatches a message to a channel, specified by the deployed channel name.
|
Response |
routeMessage(String channelName,
String message)
Dispatches a message to a channel, specified by the deployed channel name.
|
Response |
routeMessageByChannelId(String channelId,
RawMessage rawMessage)
Dispatches a message to a channel, specified by the deployed channel ID.
|
Response |
routeMessageByChannelId(String channelId,
String message)
Dispatches a message to a channel, specified by the deployed channel ID.
|
public Response routeMessage(String channelName, 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(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(String channelId, 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(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.