com.anabas.gxo
Interface GMS_StreamFactory

All Known Implementing Classes:
GMS_StreamFactoryImpl

public interface GMS_StreamFactory

The initial starting point for sharedlets to get a handle into the event bus universe. Security ------------ Prevention of 1 sharedlet instance from accessing other sharedlet instance's messages or 1 user from accessing another user's messages. Environment can automatically set message selector defaults such as user=,sharedlet=. All subsequent createSubscriber will inherit these defaults.


Method Summary
 GMS_Stream createStream(java.lang.String name, java.util.Hashtable params)
          Creates a new stream within the stream context.
 void dispose()
          Release all resources and connection held by this factory.
 java.lang.String getConnectionID()
          Each stream factory has a unique connection ID.
 void setProperty(java.lang.String str, java.lang.Object obj)
          Sets setup properties for the event bus factory.
 

Method Detail

getConnectionID

public java.lang.String getConnectionID()
                                 throws GXO_Exception
Each stream factory has a unique connection ID.

setProperty

public void setProperty(java.lang.String str,
                        java.lang.Object obj)
Sets setup properties for the event bus factory. Such as connection parameters, authentication parameters, ...

createStream

public GMS_Stream createStream(java.lang.String name,
                               java.util.Hashtable params)
                        throws GXO_AccessDeniedException
Creates a new stream within the stream context. A stream is the leaf node of a stream tree. Basically a DirContext.bind(name,CXO_Collection) operation.
Parameters:
params - A list of parameters for the stream. For example: "min_latency" - "50ms" "encrypted" - "true" "persistent" - "none"

dispose

public void dispose()
Release all resources and connection held by this factory.