public class MQGetMessageOptions
extends com.ibm.mq.jmqi.JmqiObject
MQQueue.get().| Modifier and Type | Field and Description |
|---|---|
char |
groupStatus
Whether the retrieved message is in a group, and if it is, whether it is the last in the group.
|
int |
matchOptions
Selection criteria that determine which message is retrieved.
|
byte[] |
msgToken
A token for use when getting messages.
|
int |
options
Options that control the action of MQQueue.get().
|
java.lang.String |
resolvedQueueName
The local name of the queue from which the message was retrieved.
|
int |
returnedLength
The length in bytes of the message data.
|
char |
segmentation
Whether segmentation is allowed for the retrieved message.
|
char |
segmentStatus
Whether the retrieved message is a segment of a logical message.
|
int |
waitInterval
The maximum time (in milliseconds) that an MQQueue.get() call waits for a suitable message to
arrive.
|
| Constructor and Description |
|---|
MQGetMessageOptions()
Constructs an MQGetMessageOptions object with options set to MQConstants.MQGMO_MO_WAIT, a wait interval
of zero, and a blank resolved queue name.
|
MQGetMessageOptions(boolean noReadBack)
Constructs an MQGetMessageOptions object with an option on reading
options
field. |
public int options
MQConstants.MQGMO_WAIT
MQConstants.MQGMO_NO_WAIT
MQConstants.MQGMO_SYNCPOINT
MQConstants.MQGMO_NO_SYNCPOINT- default
MQConstants.MQGMO_BROWSE_FIRST
MQConstants.MQGMO_BROWSE_NEXT
MQConstants.MQGMO_BROWSE_MSG_UNDER_CURSOR
MQConstants.MQGMO_MSG_UNDER_CURSOR
MQConstants.MQGMO_LOCK
MQConstants.MQGMO_UNLOCK
MQConstants.MQGMO_ACCEPT_TRUNCATED_MSG
MQConstants.MQGMO_FAIL_IF_QUIESCING
MQConstants.MQGMO_CONVERT
public int waitInterval
public java.lang.String resolvedQueueName
public byte[] msgToken
public int returnedLength
public int matchOptions
public char groupStatus
public char segmentStatus
public char segmentation
public MQGetMessageOptions()
public MQGetMessageOptions(boolean noReadBack)
options
field. You can use this constructor to save some overheads if your application never needs to
read back the options field.noReadBack - if true , prevents the options MQGMO field from being read back. This
means that the overhead of converting it is avoided.