MQPutMessageOptions

public class MQPutMessageOptions
extends Object
java.lang.Object
   |
   +----com.ibm.mq.MQPutMessageOptions
          

This class contains options that control the behavior of MQQueue.put().

Constructors

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 the options field is optional. You can use this constructor to save some overheads if your application never needs to read back the options field.

Parameters

Fields

contextReference

public com.ibm.mq.MQQueue

An input field that indicates the source of the context information. If the options field includes MQC.MQPMO_PASS_IDENTITY_CONTEXT or MQC.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.

contextReferenceHandle

public int

Handle to the context reference

invalidDestCount

public int

Number of messages that could not be sent.

knownDestCount

public int

Number of messages successfully sent to local queues.

options

public int

Options that control the action of MQQueue.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 '|'.

recordFields

public int

Flag which controls the behavior of MQPUT when used with distribution lists.

resolvedQueueManagerName

public java.lang.String

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.

resolvedQueueName

public java.lang.String

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.

unknownDestCount

public int

Number of messages successfully sent to remote queues.

Methods

updateDistributionListItems

public void updateDistributionListItems();

Copies updates in the response records into the distribution list items. Called from the bindings.