public class MQDestination
extends com.ibm.msg.client.jms.admin.JmsJndiDestinationImpl
implements javax.jms.Destination, com.ibm.jms.JMSDestination, java.io.Serializable
DESTINATION_TYPE_QUEUE, DESTINATION_TYPE_TOPIC| Modifier and Type | Method and Description |
|---|---|
int |
getCCSID()
Gets the number of the character set that is used by this destination for sending messages.
|
java.lang.String |
getDescription()
Gets the description of the destination.
|
int |
getEncoding()
Gets the encoding that is used for this destination.
|
long |
getExpiry()
Gets the value of the expiry for this destination.
|
int |
getFailIfQuiesce()
Gets the status of the failIfQuiesce property of this destination.
|
int |
getMessageBodyStyle()
Gets the value of the message body style for messages sent to or received from this
destination.
|
int |
getMQMDMessageContext()
Gets the value of the message context options for messages sent to this destination.
|
boolean |
getMQMDReadEnabled()
Whether JMS_IBM_MQMD* properties are set on messages sent to or received messages from this
destination based on the MQMD fields, after the send operation or during the receive operation.
|
boolean |
getMQMDWriteEnabled()
Whether JMS_IBM_MQMD* properties on messages sent to this destination modify the MQMD fields
prior to the send operation.
|
int |
getPersistence()
Gets the value of the persistence of all messages sent to this destination.
|
int |
getPriority()
Gets the override priority value.
|
java.lang.String |
getProperty(java.lang.String name)
Gets the named, user-defined property from the MQDestination URI.
|
int |
getPutAsyncAllowed()
Indicates whether asynchronous puts are allowed on this destination
|
int |
getReadAheadAllowed()
Indicates whether read ahead is allowed on this destination
|
int |
getReadAheadClosePolicy()
Indicates whether a read ahead buffer should be drained by asynchronous consumers on close,
when reading from this destination, or whether the current running callback should complete and
allow other messages to stay on the buffer (to be discarded)
|
int |
getReceiveCCSID()
Gets the number of the character set that is used when receiving messages from this
destination.
|
int |
getReceiveConversion()
Determines if the QueueManager is asked to convert messages before retrieval.
|
javax.naming.Reference |
getReference()
Returns a reference object to enable this object to be stored in JNDI.
|
int |
getReplyToStyle()
Get the ReplyToStyle.
|
java.lang.String |
getStringFromDestination()
Produces a transport-dependent string that encapsulates the properties of the destination.
|
int |
getTargetClient()
Gets the JMS compliance indicator flag.
|
java.lang.String |
getUnmappableAction()
Gets the action to be taken for unmappable characters when sending messages to this destination
|
byte |
getUnmappableReplacement()
Gets the byte to be used for unmappable characters when sending messages to this destination
|
int |
getWildcardFormat()
Gets the formatting accepted when using wildcards.
|
void |
setCCSID(int ccsid)
Sets the number of the character set that is used by this destination for sending messages.
|
void |
setDescription(java.lang.String description)
Sets a description of the destination.
|
void |
setEncoding(int encoding)
Sets the encoding to be used for numeric fields in messages sent to this destination.
|
void |
setExpiry(long expiry)
Sets the expiry of all messages sent to this destination.
|
void |
setFailIfQuiesce(int fiq)
Sets the behavior of applications accessing a quiescing queue manager with this destination.
|
void |
setMessageBodyStyle(int bodyStyle)
Sets the value for the message body style for messages sent to or received from this
destination.
|
void |
setMQMDMessageContext(int messageContext)
Sets the value of the message context options for messages sent to this destination.
|
void |
setMQMDReadEnabled(boolean readEnabled)
Whether JMS_IBM_MQMD* properties are set on messages sent to or received messages from this
destination based on the MQMD fields, after the send operation or during the receive operation.
|
void |
setMQMDWriteEnabled(boolean writeEnabled)
Whether JMS_IBM_MQMD* properties on messages sent to this destination modify the MQMD fields
prior to the send operation.
|
void |
setPersistence(int persistence)
Overrides the persistence of all messages sent to this destination.
|
void |
setPriority(int priority)
Overrides the priority of all messages sent to this destination.
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets an arbitrary, user-defined property.
|
void |
setPutAsyncAllowed(int paa)
Sets whether asynchronous puts are allowed on this destination
|
void |
setReadAheadAllowed(int raa)
Sets whether read ahead is allowed on this destination
|
void |
setReadAheadClosePolicy(int racp)
Sets whether a read ahead buffer should be drained by asynchronous consumers on close, when
reading from this destination, or whether the current running callback should complete and
allow other messages to stay on the buffer (to be discarded)
|
void |
setReceiveCCSID(int ccsid)
Sets the number of the character set that is used when receiving messages from this
destination.
|
void |
setReceiveConversion(int rcnvc)
Controls if the queuemanager is asked to convert messages before retrieval.
|
void |
setReplyToStyle(int style)
Set the ReplyToStyle.
|
void |
setTargetClient(int targetClient)
Sets a flag indicating whether the remote application supports JMS.
|
void |
setUnmappableAction(java.lang.String unmappableAction)
Sets the action to be taken for unmappable characters when sending messages to this destination
|
void |
setUnmappableReplacement(java.lang.Byte unmappableReplacement)
Sets the byte to be used for unmappable characters when sending messages to this destination
|
void |
setWildcardFormat(int format)
Sets the formatting to accept when using wildcards.
|
equals, getQueueName, getTopicName, hashCode, setStringProperty, toStringclear, containsKey, containsValue, entrySet, get, getObjectProperty, isEmpty, keySet, propertyExists, put, putAll, remove, setBatchProperties, setBooleanProperty, setByteProperty, setBytesProperty, setCharProperty, setDoubleProperty, setFloatProperty, setIntProperty, setLongProperty, setObjectProperty, setProviderPropertyContext, setShortProperty, size, valuesdump, getBooleanProperty, getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getPropertyNames, getShortProperty, getStringPropertysetBatchProperties, setBooleanProperty, setByteProperty, setBytesProperty, setCharProperty, setDoubleProperty, setFloatProperty, setIntProperty, setLongProperty, setObjectProperty, setShortProperty, setStringPropertygetBooleanProperty, getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExistspublic int getCCSID()
public java.lang.String getUnmappableAction()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic byte getUnmappableReplacement()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic int getReceiveCCSID()
throws javax.jms.JMSException
CommonConstants.WMQ_RECEIVE_CONVERSION_QMGR is specified on the
setReceiveConversion(int) method.
A value of CommonConstants.WMQ_RECEIVE_CCSID_JVM_DEFAULT implies the codepage of the
running JVM.
javax.jms.JMSException - if any exception occurs retrieving the valuepublic int getReceiveConversion()
throws javax.jms.JMSException
CommonConstants.WMQ_RECEIVE_CONVERSION_QMGR will add GMO_CONVERT to all get calls.
The default value is CommonConstants.WMQ_RECEIVE_CONVERSION_CLIENT_MSG. This will set
the client to convert only the payload of the JMS Messages.
To control the CCSID to which the QueueManager will convert set it via
setReceiveCCSID(int)
CommonConstants.WMQ_RECEIVE_CONVERSION_QMGR or
CommonConstants.WMQ_RECEIVE_CONVERSION_CLIENT_MSGjavax.jms.JMSException - if an exception retrieving the value occurspublic java.lang.String getDescription()
public int getEncoding()
public long getExpiry()
public int getFailIfQuiesce()
public int getMQMDMessageContext()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic boolean getMQMDWriteEnabled()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic boolean getMQMDReadEnabled()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic int getMessageBodyStyle()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic int getPersistence()
public int getPriority()
WMQConstants.WMQ_PRI_APP
WMQConstants.WMQ_PRI_QDEF
public java.lang.String getProperty(java.lang.String name)
name - The name of the property.setProperty(java.lang.String, java.lang.String)public int getPutAsyncAllowed()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic int getReadAheadAllowed()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic int getReadAheadClosePolicy()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.naming.Reference getReference()
throws javax.naming.NamingException
getReference in interface javax.naming.ReferenceablegetReference in class com.ibm.msg.client.jms.admin.JmsJndiDestinationImpljavax.naming.NamingExceptionpublic java.lang.String getStringFromDestination()
getStringFromDestination in interface com.ibm.jms.JMSDestinationpublic int getTargetClient()
public int getWildcardFormat()
throws javax.jms.JMSException
javax.jms.JMSException - if an internal error occurs.public void setCCSID(int ccsid)
throws javax.jms.JMSException
ccsid - the CCSID.javax.jms.JMSException - if ccsid is invalid.public void setUnmappableAction(java.lang.String unmappableAction)
throws javax.jms.JMSException
unmappableAction - the name of the action to be usedjavax.jms.JMSExceptionpublic void setUnmappableReplacement(java.lang.Byte unmappableReplacement)
throws javax.jms.JMSException
unmappableReplacement - the byte to be usedjavax.jms.JMSExceptionpublic void setReceiveCCSID(int ccsid)
throws javax.jms.JMSException
CommonConstants.WMQ_RECEIVE_CONVERSION_QMGR is specified on the
setReceiveConversion(int) method.
To specify codepage that the JVM is running in use
CommonConstants.WMQ_RECEIVE_CCSID_JVM_DEFAULT
ccsid - the CCSID.javax.jms.JMSException - if ccsid is invalid.public void setReceiveConversion(int rcnvc)
throws javax.jms.JMSException
CommonConstants.WMQ_RECEIVE_CONVERSION_QMGR will add GMO_CONVERT to all get calls. The
default value is CommonConstants.WMQ_RECEIVE_CONVERSION_CLIENT_MSG. This will set the
client to convert only the payload of the JMS Messages.
To control the CCSID to which the QueueManager will convert set it via
setReceiveCCSID(int)
rcnvc - CommonConstants.WMQ_RECEIVE_CONVERSION_QMGR
CommonConstants.WMQ_RECEIVE_CONVERSION_CLIENT_MSGjavax.jms.JMSException - if a value supplied is invalid.public void setDescription(java.lang.String description)
description - the description for the destination.public void setEncoding(int encoding)
throws javax.jms.JMSException
encoding - the encoding.javax.jms.JMSException - if encoding is not valid.public void setExpiry(long expiry)
throws javax.jms.JMSException
expiry - the expiry time (milliseconds).javax.jms.JMSException - if expiry is not valid.public void setFailIfQuiesce(int fiq)
throws javax.jms.JMSException
fiq - possible values are:
javax.jms.JMSException - if fiq is not one of the above.public void setMQMDMessageContext(int messageContext)
throws javax.jms.JMSException
messageContext - the value of message context options. Possible values are:
javax.jms.JMSException - if messageContext is invalidpublic void setMQMDWriteEnabled(boolean writeEnabled)
throws javax.jms.JMSException
writeEnabled - true or falsejavax.jms.JMSException - if the value cannot be setpublic void setMQMDReadEnabled(boolean readEnabled)
throws javax.jms.JMSException
readEnabled - true or falsejavax.jms.JMSException - if the value cannot be setpublic void setMessageBodyStyle(int bodyStyle)
throws javax.jms.JMSException
bodyStyle - the value for the message body style. Possible values are:
javax.jms.JMSException - if bodyStyle is invalidpublic void setPersistence(int persistence)
throws javax.jms.JMSException
persistence - the value of persistence.javax.jms.JMSException - if persistence is invalid.public void setPriority(int priority)
throws javax.jms.JMSException
priority - the new priority. Possible values are:
WMQConstants.WMQ_PRI_APP
WMQConstants.WMQ_PRI_QDEF
javax.jms.JMSException - if the value is invalidpublic void setProperty(java.lang.String name,
java.lang.String value)
getStringFromDestination(). Names and
values for such properties must conform to the following rules:
Names can contain any character, but
=
,
%
and
&
characters will be escaped using standard URI syntax (that is, %3d, %25 and %26
respectively) when they are added to the destination URI string.
Names beginning with the characters
ibm
are reserved for IBM internal use only.
The names of existing MQDestination properties (for example, priority, CCSID or brokerVersion)
are also reserved.
Values can contain any character but
%
and
&
characters will be escaped using standard URI syntax when they are added to the
ProviderDestination URI string.
Destination URI strings that cannot be decoded due to syntax errors will result in a JMSException with reason MQJMS_EXCEPTION_INVALID_DESTINATION being thrown.
Names and Values added using the setProperty() method must not have any
=
,
%
and
&
characters replaced by escape sequences as this will be done when they are added to
the destination URI string.
If this method is used on a 1.3.1 JDK or lower, the Names and Values added will not be escaped
and will be added to the destination URI as they are. This can cause unpredictable results if
the Names or Values contain unescaped
=
,
%
or
&
characters. For example, they might result in a JMSException being thrown or they
might cause additional erroneous properties to be defined in the MQDestination object.
name - The name of the property.value - The value of the property.public void setPutAsyncAllowed(int paa)
throws javax.jms.JMSException
paa - possible values are:
javax.jms.JMSException - if paa is not one of the above.public void setReadAheadAllowed(int raa)
throws javax.jms.JMSException
raa - possible values are:
javax.jms.JMSException - if raa is not one of the above.public void setReadAheadClosePolicy(int racp)
throws javax.jms.JMSException
racp - possible values are:
javax.jms.JMSException - if racp is not one of the above.public void setTargetClient(int targetClient)
throws javax.jms.JMSException
targetClient - the value of the flag. Possible values are:
javax.jms.JMSException - if the value is invalidpublic void setWildcardFormat(int format)
throws javax.jms.JMSException
format - property applicable to all instances of ConnectionFactory TopicConnectionFactory
and their XA equivalents. In the v6 implementation, where publish/subscribe messaging
is performed via a broker, different topic wildcard syntax is used depending on which
broker is used. In v7, using native publish/subscribe within the queue manager, the
wildcard syntax can be chosen via this property.javax.jms.JMSException - if an internal error occurs.public void setReplyToStyle(int style)
throws javax.jms.JMSException
style - Permitted values are
javax.jms.JMSExceptionpublic int getReplyToStyle()
throws javax.jms.JMSException
javax.jms.JMSException