public interface Message
System.Messaging.Message
exposing key fields.
Check the .NET documentation for more details about each of these properties.
Modifier and Type | Interface and Description |
---|---|
static class |
Message.Format
Enum describing the supported Message Formatters.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAcknowledgeType()
Get the acknowledgement type that will be returned.
|
Acknowledgment |
getAcknowledgment()
Get the type of acknowledgement that this message represents.
|
java.lang.String |
getAdministrationQueue()
Get the queue that receives acknowledgement messages for this message.
|
java.util.Date |
getArrivedTime()
Gets the time that the message arrived in the destination queue.
|
java.lang.String |
getBody()
Get the body of the message.
|
java.lang.String |
getCorrelationId()
Get the correlation ID.
|
java.lang.String |
getId()
Get the ID of the message.
|
java.lang.String |
getLabel()
Get the label for this message.
|
long |
getLookupId()
Get the Lookup Id.
|
MessageType |
getMessageType()
Gets the message type: Normal, Acknowledgment, or Report.
|
java.lang.String |
getResponseQueue()
Gets the queue that receives application-generated response messages.
|
java.util.Date |
getSentTime()
Gets the date and time on the sending computer that the message was sent by the source queue manager.
|
java.lang.String |
getSourceMachine()
Gets the computer from which the message originated.
|
long |
getTimeToBeReceived()
Get the maximum amount of time for the message to be received from the destination queue
|
long |
getTimeToReachQueue()
Get the maximum amount of time for the message to reach the queue.
|
java.lang.String |
getTransactionId()
Gets the identifier for the transaction of which the message was a part.
|
boolean |
getUseTracing()
Indicates whether to trace a message as it moves toward its destination queue.
|
void |
setAcknowledgeType(java.lang.String ackType)
Sets the type of acknowledgment message to be returned to the sending application.
|
void |
setAdministrationQueue(java.lang.String queueName)
Sets the queue that receives the acknowledgement messages that Message Queuing generates.
|
void |
setBody(java.lang.String s)
Set the body of the message.
|
void |
setCorrelationId(java.lang.String s)
Set the correlation id.
|
void |
setFormatter(Message.Format format)
Set the formatter to use for this message.
|
void |
setLabel(java.lang.String s)
Set the label.
|
void |
setLookupId(long s)
Set the Lookup ID.
|
void |
setResponseQueue(java.lang.String queueName)
sets the queue that receives application-generated response messages.
|
void |
setTimeToBeReceived(long ms)
Set the maximum amount of time for the message to be received from the destination queue
|
void |
setTimeToReachQueue(long ms)
Set the maximum amount of time for the message to reach the queue.
|
void |
setUseTracing(boolean b)
Indicates whether to trace a message as it moves toward its destination queue.
|
java.lang.String getBody() throws MSMQException
MSMQException
- wrapping any exceptions.void setBody(java.lang.String s) throws MSMQException
s
- the body of the message.MSMQException
- wrapping any exceptions.void setFormatter(Message.Format format) throws MSMQException
format
- the formatter (default is Message.Format.BINARY
)MSMQException
- wrapping any exceptions.java.lang.String getLabel() throws MSMQException
MSMQException
- wrapping any exceptions.void setLabel(java.lang.String s) throws MSMQException
s
- the labelMSMQException
- wrapping any exceptions.java.lang.String getId() throws MSMQException
MSMQException
- wrapping any exceptions.java.lang.String getCorrelationId() throws MSMQException
MSMQException
- wrapping any exceptions.void setCorrelationId(java.lang.String s) throws MSMQException
s
- the correlation id.MSMQException
- wrapping any exceptions.void setLookupId(long s) throws MSMQException
s
- the lookup Id.MSMQException
- wrapping any exceptions.long getLookupId() throws MSMQException
MSMQException
java.util.Date getSentTime() throws MSMQException
MSMQException
- wrapping any exceptions.java.util.Date getArrivedTime() throws MSMQException
MSMQException
- wrapping any exceptions.java.lang.String getSourceMachine() throws MSMQException
Note that this will return null, if MSMQ is in the wrong mode (i.e. you are not installed in AD integration mode, as it will fail if the computer is in workgroup mode
MSMQException
- wrapping any exceptions.java.lang.String getTransactionId() throws MSMQException
MSMQException
- wrapping any exceptions.void setTimeToBeReceived(long ms) throws MSMQException
MSMQException
- wrapping any exceptions.long getTimeToBeReceived() throws MSMQException
MSMQException
- wrapping any exceptions.void setTimeToReachQueue(long ms) throws MSMQException
MSMQException
- wrapping any exceptions.long getTimeToReachQueue() throws MSMQException
MSMQException
- wrapping any exceptions.void setUseTracing(boolean b) throws MSMQException
MSMQException
- wrapping any exceptions.boolean getUseTracing() throws MSMQException
MSMQException
- wrapping any exceptions.void setAdministrationQueue(java.lang.String queueName) throws MSMQException
queueName
- the administration queue name.MSMQException
- wrapping any exceptions.java.lang.String getAdministrationQueue() throws MSMQException
MSMQException
- wrapping any exceptions.void setResponseQueue(java.lang.String queueName) throws MSMQException
queueName
- the response queue name.MSMQException
- wrapping any exceptions.java.lang.String getResponseQueue() throws MSMQException
MSMQException
- wrapping any exceptions.void setAcknowledgeType(java.lang.String ackType) throws MSMQException
ackType
- the acknowledge type AcknowledgeTypes.Type
MSMQException
- wrapping any exceptions.java.lang.String getAcknowledgeType() throws MSMQException
System.Messaging.AcknowledgeType
enum.MSMQException
- wrapping any exceptionsAcknowledgment getAcknowledgment() throws MSMQException
System.Messaging.Acknowledgment
enum.MSMQException
- wrapping any exceptionsMessageType getMessageType() throws MSMQException
System.Messaging.MessageType
enum.MSMQException
- wrapping any exceptions