com.anabas.gxo
Interface GMS_StreamSubscriber

All Known Implementing Classes:
GMS_SubscriberImpl

public interface GMS_StreamSubscriber

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


Method Summary
 GMS_MessageSelector createMessageSelector(java.lang.String name)
          Creates an instance of the specified message selector type.
 GMS_Message receiveMessage()
          Synchronous reception of messages.
 void setMessageListener(GMS_MessageListener m)
          Set a listener for asychronous reception of messages.
 void setSelector(GMS_MessageSelector s)
          Sets the message filter for the subscriber.
 

Method Detail

createMessageSelector

public GMS_MessageSelector createMessageSelector(java.lang.String name)
Creates an instance of the specified message selector type. The name must be the name of cone of the message selector instances without the package name. For example UserSelector.
Parameters:
name - The Class name (w/o package name. Assumes com.anabas.gxo) of the messagee selector to create.
Returns:
An instance of the message selector type specified. null if the message selector type is not supported.

setSelector

public void setSelector(GMS_MessageSelector s)
                 throws GXO_Exception
Sets the message filter for the subscriber. Best if the filter is implemented on the server side.
Throws:
AccessDeniedException - The message selector or part of it violates security constraints.

setMessageListener

public void setMessageListener(GMS_MessageListener m)
                        throws GXO_Exception
Set a listener for asychronous reception of messages.

receiveMessage

public GMS_Message receiveMessage()
                           throws GXO_MessageException
Synchronous reception of messages.