Interface JmsPropertyContext
- All Superinterfaces:
JmsReadablePropertyContext, Map<String,Object>, Serializable
- All Known Subinterfaces:
JmsConnection, JmsConnectionFactory, JmsConnectionMetaData, JmsConsumer, JmsContext, JmsDestination, JmsMessageConsumer, JmsMessageProducer, JmsQueue, JmsQueueBrowser, JmsQueueConnection, JmsQueueConnectionFactory, JmsQueueReceiver, JmsQueueSender, JmsQueueSession, JmsSession, JmsTemporaryQueue, JmsTemporaryTopic, JmsTopic, JmsTopicConnection, JmsTopicConnectionFactory, JmsTopicPublisher, JmsTopicSession, JmsTopicSubscriber, JmsXAConnection, JmsXAConnectionFactory, JmsXAContext, JmsXAQueueConnection, JmsXAQueueConnectionFactory, JmsXAQueueSession, JmsXASession, JmsXATopicConnection, JmsXATopicConnectionFactory, JmsXATopicSession
- All Known Implementing Classes:
Cleanup, com.ibm.msg.client.jakarta.jms.admin.JmsConnectionFactoryImpl, com.ibm.msg.client.jakarta.jms.admin.JmsDestinationImpl, com.ibm.msg.client.jakarta.jms.admin.JmsJndiConnectionFactoryImpl, com.ibm.msg.client.jakarta.jms.admin.JmsJndiDestinationImpl, com.ibm.msg.client.jakarta.jms.internal.JmsPropertyContextImpl, MQConnection, MQConnectionFactory, MQConnectionMetaData, MQDestination, MQMessageConsumer, MQMessageProducer, MQQueue, MQQueueBrowser, MQQueueConnection, MQQueueConnectionFactory, MQQueueReceiver, MQQueueSender, MQQueueSession, MQRoot, MQSession, MQTemporaryQueue, MQTemporaryTopic, MQTopic, MQTopicConnection, MQTopicConnectionFactory, MQTopicPublisher, MQTopicSession, MQTopicSubscriber, MQXAConnection, MQXAConnectionFactory, MQXAQueueConnection, MQXAQueueConnectionFactory, MQXAQueueSession, MQXASession, MQXATopicConnection, MQXATopicConnectionFactory, MQXATopicSession
This is the interface used to get and set properties from all JMS objects. Properties of
primitive types will be converted according to the JMS type conversion rules:
A property value written as the row type below can be read as the column type:
| boolean | byte | short | char | int | long | float | double | String | byte[] | |
|---|---|---|---|---|---|---|---|---|---|---|
| boolean | X | X | ||||||||
| byte | X | X | X | X | X | |||||
| short | X | X | X | X | ||||||
| char | X | X | ||||||||
| int | X | X | X | |||||||
| long | X | X | ||||||||
| float | X | X | X | |||||||
| double | X | X | ||||||||
| String | X | X | X | X | X | X | X | X | ||
| byte[] | X |
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetBatchProperties(Map<String, Object> properties) Sets multiple property values passed in via a Map.voidsetBooleanProperty(String name, boolean value) Sets a boolean property value with the given name.voidsetByteProperty(String name, byte value) Sets a byte property value with the given name.voidsetBytesProperty(String name, byte[] value) Sets a byte array property value with the given name.voidsetCharProperty(String name, char value) Sets a character property value with the given name.voidsetDoubleProperty(String name, double value) Sets a double property value with the given name.voidsetFloatProperty(String name, float value) Sets a float property value with the given name.voidsetIntProperty(String name, int value) Sets an int property value with the given name.voidsetLongProperty(String name, long value) Sets a long property value with the given name.voidsetObjectProperty(String name, Object value) Sets an Object property value with the given name.voidsetShortProperty(String name, short value) Sets a short property value with the given name.voidsetStringProperty(String name, String value) Sets a String property value with the given name.default org.json.JSONObjecttoJson()Methods inherited from interface JmsReadablePropertyContext
getBooleanProperty, getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, stringifyMeMethods inherited from interface Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
setCharProperty
Sets a character property value with the given name.- Parameters:
name- the name of the char property.value- the char value to put into the property context.- Throws:
jakarta.jms.JMSException- if the property context is marked read-only or if the proposed value is invalid for the property.
-
setBooleanProperty
Sets a boolean property value with the given name.- Parameters:
name- the name of the boolean property.value- the boolean value to put into the property context.- Throws:
jakarta.jms.JMSException- if the property context is marked read-only or if the proposed value is invalid for the property.
-
setByteProperty
Sets a byte property value with the given name.- Parameters:
name- the name of the byte property.value- the byte value to put into the property context.- Throws:
jakarta.jms.JMSException- if the property context is marked read-only or if the proposed value is invalid for the property.
-
setShortProperty
Sets a short property value with the given name.- Parameters:
name- the name of the short property.value- the short value to put into the property context.- Throws:
jakarta.jms.JMSException- if the property context is marked read-only or if the proposed value is invalid for the property.
-
setIntProperty
Sets an int property value with the given name.- Parameters:
name- the name of the int property.value- the int value to put into the property context.- Throws:
jakarta.jms.JMSException- if the property context is marked read-only or if the proposed value is invalid for the property.
-
setLongProperty
Sets a long property value with the given name.- Parameters:
name- the name of the long property.value- the long value to put into the property context.- Throws:
jakarta.jms.JMSException- if the property context is marked read-only or if the proposed value is invalid for the property.
-
setFloatProperty
Sets a float property value with the given name.- Parameters:
name- the name of the float property.value- the float value to put into the property context.- Throws:
jakarta.jms.JMSException- if the property context is marked read-only or if the proposed value is invalid for the property.
-
setDoubleProperty
Sets a double property value with the given name.- Parameters:
name- the name of the double property.value- the double value to put into the property context.- Throws:
jakarta.jms.JMSException- if the property context is marked read-only or if the proposed value is invalid for the property.
-
setStringProperty
Sets a String property value with the given name.- Parameters:
name- the name of the String property.value- the String value to put into the property context.- Throws:
jakarta.jms.JMSException- if the property context is marked read-only or if the proposed value is invalid for the property.
-
setObjectProperty
Sets an Object property value with the given name.- Parameters:
name- the name of the Object property.value- the Object value to put into the property context.- Throws:
jakarta.jms.JMSException- if the property context is marked read-only or if the proposed value is invalid for the property.
-
setBytesProperty
Sets a byte array property value with the given name.- Parameters:
name- the name of the byte array property.value- the byte array to put into the property context.- Throws:
jakarta.jms.JMSException- if the property context is marked read-only or if the proposed value is invalid for the property.
-
setBatchProperties
Sets multiple property values passed in via a Map. If any property fails to be set, all changes are rolled back.- Parameters:
properties- the Map of properties.- Throws:
jakarta.jms.JMSException- if the property context is marked read-only or if any proposed value is invalid for any property.
-
toJson
default org.json.JSONObject toJson()- Returns:
- a JSON representation of selected classes
-