public interface MulticastListener extends EventListener
processMulticast
method is invoked.| Modifier and Type | Method and Description |
|---|---|
void |
processMulticast(String name,
Message message)
Called when a multicast message is received from the NetServer.
|
void processMulticast(String name, Message message) throws Exception
Multicast messages are generated by other servers when particular event occurs (e.g., the price of a stock has reached a certain limit).
In order to receive multicast messages, a program has to subscribe to
them using either the ServerChannel.enableMulticast or the ClientSlot.enableMulticast method.
name - the name of the multicast.message - the data of the multicast.Exception - when an error occurs while processing the message.ServerChannel.enableMulticast,
ClientSlot.enableMulticastCopyright © OBCOM INGENIERIA S.A. (Chile). All Rights Reserved.