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

public interface JmsPropertyContext extends JmsReadablePropertyContext, Map<String,Object>
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
  • Method Details

    • setCharProperty

      void setCharProperty(String name, char value) throws jakarta.jms.JMSException
      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

      void setBooleanProperty(String name, boolean value) throws jakarta.jms.JMSException
      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

      void setByteProperty(String name, byte value) throws jakarta.jms.JMSException
      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

      void setShortProperty(String name, short value) throws jakarta.jms.JMSException
      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

      void setIntProperty(String name, int value) throws jakarta.jms.JMSException
      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

      void setLongProperty(String name, long value) throws jakarta.jms.JMSException
      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

      void setFloatProperty(String name, float value) throws jakarta.jms.JMSException
      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

      void setDoubleProperty(String name, double value) throws jakarta.jms.JMSException
      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

      void setStringProperty(String name, String value) throws jakarta.jms.JMSException
      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

      void setObjectProperty(String name, Object value) throws jakarta.jms.JMSException
      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

      void setBytesProperty(String name, byte[] value) throws jakarta.jms.JMSException
      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

      void setBatchProperties(Map<String,Object> properties) throws jakarta.jms.JMSException
      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