Package com.ibm.mq
Class MQPutMessageOptions
java.lang.Object
com.ibm.mq.jmqi.JmqiObject
com.ibm.mq.MQPutMessageOptions
public class MQPutMessageOptions
extends com.ibm.mq.jmqi.JmqiObject
This class contains options that control the behavior of
MQQueue.put.-
Field Summary
FieldsModifier and TypeFieldDescriptionAn input field that indicates the source of the context information.intHandle to the context referenceintNumber of messages that could not be sent.intNumber of messages successfully sent to local queues.intOptions that control the action ofMQQueue.put().intFlag that controls the behavior of MQPUT when used with distribution lists.An output field set by the queue manager to the name of the queue manager that owns the remote queue.The output field set by the queue manager to the name of the queue on which the message is placed.intNumber of messages successfully sent to remote queues.Fields inherited from class com.ibm.mq.jmqi.JmqiObject
COMP_JM, COMP_JN, COMP_JO -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an object with no options set, and blank resolvedQueueName and resolvedQueueManagerName.MQPutMessageOptions(boolean noReadBack) Constructs an MQPutMessageOptions object; reading theoptionsfield is optional. -
Method Summary
Methods inherited from class com.ibm.mq.jmqi.JmqiObject
getJmqiEnvironment
-
Field Details
-
options
public int optionsOptions that control the action ofMQQueue.put(). Any or none of the following values can be specified. If more than one option is required, the values can be combined using '&' or '|'.Note that the default syncpoint is
CMQC.MQPMO_NO_SYNCPOINTfor all platforms.CMQC.MQPMO_SYNCPOINTCMQC.MQPMO_NO_SYNCPOINT- defaultCMQC.MQPMO_NO_CONTEXTCMQC.MQPMO_DEFAULT_CONTEXTCMQC.MQPMO_SET_IDENTITY_CONTEXTCMQC.MQPMO_SET_ALL_CONTEXTCMQC.MQPMO_FAIL_IF_QUIESCINGCMQC.MQPMO_NEW_MSG_IDCMQC.MQPMO_NEW_CORREL_IDCMQC.MQPMO_LOGICAL_ORDERCMQC.MQPMO_ALTERNATE_USER_AUTHORITYCMQC.MQPMO_RESOLVE_LOCAL_QCMQC.MQPMO_ASYNC_RESPONSE
-
contextReferenceHandle
public int contextReferenceHandleHandle to the context reference -
contextReference
An input field that indicates the source of the context information. If the options field includesCMQC.MQPMO_PASS_IDENTITY_CONTEXTorCMQC.MQPMO_PASS_ALL_CONTEXT, set this field to refer to the MQQueue from which to take the context information. The initial value of this field is null. -
resolvedQueueName
The output field set by the queue manager to the name of the queue on which the message is placed. This might be different from the name used to open the queue, if the opened queue was an alias or model queue.- See Also:
-
resolvedQueueManagerName
An output field set by the queue manager to the name of the queue manager that owns the remote queue. This might be different from the name of the queue manager from which the queue was accessed if the queue is a remote queue.- See Also:
-
knownDestCount
public int knownDestCountNumber of messages successfully sent to local queues. -
unknownDestCount
public int unknownDestCountNumber of messages successfully sent to remote queues. -
invalidDestCount
public int invalidDestCountNumber of messages that could not be sent. -
recordFields
public int recordFieldsFlag that controls the behavior of MQPUT when used with distribution lists.
-
-
Constructor Details
-
MQPutMessageOptions
public MQPutMessageOptions()Constructs an object with no options set, and blank resolvedQueueName and resolvedQueueManagerName. -
MQPutMessageOptions
public MQPutMessageOptions(boolean noReadBack) Constructs an MQPutMessageOptions object; reading theoptionsfield is optional. You can use this constructor to save some overheads if your application never needs to read back the options field.- Parameters:
noReadBack- if true this disables the reading back the options MQPMO field. This avoids the overhead of converting it.
-