com.apama.session
Event SessionHandlerFactory
Factory event to construct fully initialized SessionHandler interface events. It also provides helper actions to allow commonly used functionality from the Handler to be run in a single line, such as connecting.
-
Since:
- CMF 5.1.0
-
See Also:
-
com.apama.session.SessionHandler - The Session Handler this MD Handler will connect to.
connect
com.apama.session.SessionHandler static connect(context mainContext, string sessionName, string transportName)
Create a SessionHandler interface and automatically connect it to the Session specified by the Session and Transport Name.
-
Parameters:
-
mainContext - The main context.
-
sessionName - The name of the session to connect to.
-
transportName - The name of the transport to connect to.
-
Returns:
- A constructed SessionHandler.
-
See Also:
-
com.apama.session.SessionHandler -
connectCb
com.apama.session.SessionHandler static connectCb(context mainContext, string sessionName, string transportName, action<com.apama.session.SessionHandler> cbConnected)
Create a SessionHandler interface and automatically connect it to the Session specified by the Session and Transport Name using the supplied callback.
-
Parameters:
-
mainContext - The main context.
-
sessionName - The name of the session to connect to.
-
transportName - The name of the transport to connect to.
-
cbConnected - The callback.
-
Returns:
- A constructed SessionHandler.
-
See Also:
-
com.apama.session.SessionHandler -
create
com.apama.session.SessionHandler static create(context mainContext)
Create a SessionHandler interface that can be connected to a Session.
-
Parameters:
-
mainContext - The main context.
-
Returns:
- A constructed SessionHandler.
-
See Also:
-
com.apama.session.SessionHandler -