public interface TimoCloudMessageAPI
TimoCloudAPI.getMessageAPI() to get an instance of this API| Modifier and Type | Method and Description |
|---|---|
MessageClientAddress |
getOwnAddress()
Returns the message client address of the TimoCloud application you are on.
|
void |
registerMessageListener(MessageListener listener,
java.lang.String... supportedMessageTypes)
Registers a message listener
|
void |
sendMessage(AddressedPluginMessage message)
Sends an addressed message to the given recipient
|
void |
sendMessageToCord(PluginMessage message,
java.lang.String cordName)
Sends a message to the cord with the given name
|
void |
sendMessageToCore(PluginMessage message)
Sends a message to the core
|
void |
sendMessageToProxy(PluginMessage message,
java.lang.String proxyName)
Sends a message to the proxy with the given name
|
void |
sendMessageToServer(PluginMessage message,
java.lang.String serverName)
Sends a message to the server with the given name
|
void |
unregisterMessageListener(MessageListener listener)
Unregisters a message listener so that it no longer gets notified of incoming protocol.
|
void sendMessage(AddressedPluginMessage message)
message - The message which shall be sentvoid sendMessageToCore(PluginMessage message)
message - The message which shall be sentvoid sendMessageToServer(PluginMessage message, java.lang.String serverName)
message - The message which shall be sentserverName - The server the message shall be sent tovoid sendMessageToProxy(PluginMessage message, java.lang.String proxyName)
message - The message which shall be sentproxyName - The proxy the message shall be sent tovoid sendMessageToCord(PluginMessage message, java.lang.String cordName)
message - The message which shall be sentcordName - The cord the message shall be sent tovoid registerMessageListener(MessageListener listener, java.lang.String... supportedMessageTypes)
listener - The listener which shall be registeredsupportedMessageTypes - The message types the listener accepts. Leave empty for all types.void unregisterMessageListener(MessageListener listener)
listener - The listener which shall be unregisteredMessageClientAddress getOwnAddress()