public class MAmxSession extends MSession
m_app, m_defaultTimeout, m_deliveryMode, m_transactionLevel
m_registry
Constructor and Description |
---|
MAmxSession(MApp app,
java.lang.String name)
Create a TIBCO Enterprise for AMX connection to access network for communication
between components for example, between a publisher and a subscriber.
|
Modifier and Type | Method and Description |
---|---|
boolean |
nextEvent(long timeout)
Call the next event for this
MSession instance. |
getApp, getDaemon, getDeliveryMode, getHost, getNetwork, getPort, getProtocol, getService, getSessionName, getTibrvQueue, getTibrvTransport, nextEvent
activate, deactivate, getComponentRegistry, getName, getStatus, isActivated, remove
public MAmxSession(MApp app, java.lang.String name) throws MException
app
- The MApp
with which this instance session is associated.name
- The name of the session to create (to be used in the component registry as a unique key).connectionSpec
- MJmsConnectionSpec
for this session.MException
public boolean nextEvent(long timeout) throws MException
MSession
MSession
instance.
This contrasts with MApp.nextEvent(long)
,
which calls the next event for this application instance.nextEvent
in class MSession
timeout
- Time limit in milliseconds.
If the next event cannot be executed within the time specified by this parameter, the method returns.
If, for example, you set the time limit to 10 milliseconds and no event occurs in 10 milliseconds (or has occurred in the past and has not yet been reported), then this method terminates and no exception is thrown.
MException
MApp.nextEvent(long)