public abstract class MSession extends MBaseComponent
MJmsSession
and MRvSession
.Modifier and Type | Field and Description |
---|---|
protected MApp |
m_app |
protected long |
m_defaultTimeout |
protected int |
m_deliveryMode |
protected int |
m_transactionLevel |
m_registry
Modifier | Constructor and Description |
---|---|
protected |
MSession(java.lang.String p_objectName) |
Modifier and Type | Method and Description |
---|---|
MApp |
getApp()
Return the
MApp associated with this session. |
java.lang.String |
getDaemon()
Return the sessions rvd daemon.
|
int |
getDeliveryMode()
Return the delivery mode for this session.
|
java.lang.String |
getHost()
Return the session's rva host parameter.
|
java.lang.String |
getNetwork()
Return the sessions network.
|
int |
getPort()
Return the session's rva port parameter; 0 if not an rva session
Note: this is only applicable to TIBCO Rendezvous transport.
|
int |
getProtocol()
Deprecated.
as of TIBCO Adapter SDK Version 5.0.0
|
java.lang.String |
getService()
Return the session's rvd service parameter.
|
java.lang.String |
getSessionName()
Return the session's name.
|
com.tibco.tibrv.TibrvQueue |
getTibrvQueue()
Deprecated.
as of TIBCO Adapter SDK Version 5.0.0
|
com.tibco.tibrv.TibrvTransport |
getTibrvTransport()
Deprecated.
as of TIBCO Adapter SDK Version 5.0.0
|
boolean |
nextEvent()
Call the next event for this
MSession instance. |
abstract boolean |
nextEvent(long timeout)
Call the next event for this
MSession instance. |
activate, deactivate, getComponentRegistry, getName, getStatus, isActivated, remove
protected int m_deliveryMode
protected int m_transactionLevel
protected MApp m_app
protected long m_defaultTimeout
public boolean nextEvent() throws MException
MSession
instance.
This contrasts with MApp.nextEvent(long)
,
which calls the next event for this application instance.
This method waits for an event indefinitely.
MException
MApp.nextEvent(long)
public abstract boolean nextEvent(long timeout) throws MException
MSession
instance.
This contrasts with MApp.nextEvent(long)
,
which calls the next event for this application instance.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)
public int getDeliveryMode()
MEndpointSpec
public java.lang.String getHost()
public int getPort()
public java.lang.String getNetwork()
public java.lang.String getSessionName()
public java.lang.String getService()
public java.lang.String getDaemon()
public MApp getApp()
MApp
associated with this session.public int getProtocol()
public com.tibco.tibrv.TibrvQueue getTibrvQueue()
public com.tibco.tibrv.TibrvTransport getTibrvTransport()