com.anabas.gxo
Interface GMS_StreamPublisher


public interface GMS_StreamPublisher

Title: Description: Copyright: Copyright (c) 2000 Company:


Method Summary
 void broadcast(GMS_Message m)
          Broadcast the message to all subscribers in this channel.
 void broadcast(GMS_Message m, boolean noLocal)
          Broadcast the message to all subscribers in this channel.
 GMS_Message createMessage(short msgType, short bodyType)
          Get a list of Destinations that are subscribed to this channel.
 GMS_Message request(GMS_Message m, GMS_Destination dst, long timeout)
          Sends a message and waits for a response
 void sendMessage(GMS_Message m, GMS_Destination d)
          Multicast the message to a Destinations.
 void sendMessage(GMS_Message m, GMS_Destination d, boolean noLocal)
          Multicast the message to a Destinations.
 

Method Detail

createMessage

public GMS_Message createMessage(short msgType,
                                 short bodyType)
                          throws GXO_Exception
Get a list of Destinations that are subscribed to this channel.
Parameters:
type - The type of the message as listed in the Message public static final variables.

request

public GMS_Message request(GMS_Message m,
                           GMS_Destination dst,
                           long timeout)
                    throws GXO_Exception
Sends a message and waits for a response
Parameters:
timeout - in milliseconds. 0 means infinite wait.

sendMessage

public void sendMessage(GMS_Message m,
                        GMS_Destination d)
                 throws GXO_Exception
Multicast the message to a Destinations. By default, the message will also be delivered to the local client. If the message is not desired to be delivered to the local client, use the alternate sendMessage function.

sendMessage

public void sendMessage(GMS_Message m,
                        GMS_Destination d,
                        boolean noLocal)
                 throws GXO_Exception
Multicast the message to a Destinations.

broadcast

public void broadcast(GMS_Message m)
               throws GXO_Exception
Broadcast the message to all subscribers in this channel.

broadcast

public void broadcast(GMS_Message m,
                      boolean noLocal)
               throws GXO_Exception
Broadcast the message to all subscribers in this channel. By default, the message will also be delivered to the local client. If the message is not desired to be delivered to the local client, use the alternate sendMessage function.