public abstract class MDataEvent extends MEvent
MSubscriber
, the SDK creates an instance of MDataEvent
and passes it to the user's
callback onEvent()
method. Information about the event is then available by calling the
the methods in MDataEvent
.Modifier and Type | Field and Description |
---|---|
protected MTree |
m_data |
protected MMarshaller |
m_marshaller |
protected MPublisher |
m_replySender |
protected MSubscriberEventSource |
m_subscriber |
Constructor and Description |
---|
MDataEvent(MSubscriberEventSource source,
MTree data,
MPublisher replySender) |
Modifier and Type | Method and Description |
---|---|
abstract void |
confirm()
Confirm that an event has been consumed.
|
java.lang.String |
getCorrelationId()
Deprecated.
as of TIBCO Adapter SDK 5.2.0.
|
MTree |
getData()
Retrieve the data for this event.
|
abstract java.lang.String |
getDestinationName()
Returns the destination name for this event.
|
MGUID |
getGUID()
Deprecated.
as of TIBCO Adapter SDK 5.0.0.
|
java.lang.String |
getJmsCorrelationId()
Return the JMS correlation ID .Applicable only to JMS transport.
|
java.lang.String |
getJmsMessageId()
Return the JMS Message ID .Applicable only to JMS transport.
|
int |
getJmsPriority() |
java.lang.String |
getMessageId()
Deprecated.
as of TIBCO Adapter SDK 5.2.0.
|
java.lang.String |
getReplyDestinationName()
Returns the reply senders destination name
|
MPublisher |
getReplySender()
Deprecated.
as of TIBCO Adapter SDK 5.0.0.
|
java.lang.String |
getSender()
Deprecated.
as of TIBCO Adapter SDK 5.0.0.
|
java.lang.String |
getSenderCMName()
Returns the name of the TIBCO Rendezvous certified sender.
|
long |
getSequenceNumber()
Return the RVCM sequence number associated with this event; return 0 if this is not an RVCM message.
|
java.lang.String |
getSubject()
Deprecated.
as of TIBCO Adapter SDK 5.0.0.
|
abstract void |
sendReply(MTree data)
Sends reply back to the publisher
|
protected MPublisher m_replySender
protected MMarshaller m_marshaller
protected MSubscriberEventSource m_subscriber
protected MTree m_data
public MDataEvent(MSubscriberEventSource source, MTree data, MPublisher replySender)
public abstract java.lang.String getDestinationName() throws MException
MException
public abstract void confirm() throws MException
MException
public abstract void sendReply(MTree data) throws MException
data
- The MTree
to be sent to the publisherMException
public MTree getData()
public long getSequenceNumber()
public java.lang.String getSender()
public java.lang.String getMessageId()
public java.lang.String getCorrelationId()
TibrvtxTransport.sendReply()
have a unique identifier
for the message for which the reply was sent. The correlation identifier is undefined
for a message sent by TibrvtxTransport.send()
.public MGUID getGUID()
public java.lang.String getSubject()
public MPublisher getReplySender()
public java.lang.String getReplyDestinationName() throws MException
MException
public java.lang.String getSenderCMName()
public java.lang.String getJmsCorrelationId() throws MException
MException
public java.lang.String getJmsMessageId() throws MException
MException
public int getJmsPriority() throws MException
MException