Class ImmutableJmsProperties
- java.lang.Object
-
- io.smallrye.reactive.messaging.jms.impl.ImmutableJmsProperties
-
- All Implemented Interfaces:
JmsProperties
public final class ImmutableJmsProperties extends Object implements JmsProperties
-
-
Constructor Summary
Constructors Constructor Description ImmutableJmsProperties(javax.jms.Message message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetBooleanProperty(String name)Returns the value of thebooleanproperty with the specified name.bytegetByteProperty(String name)Returns the value of thebyteproperty with the specified name.doublegetDoubleProperty(String name)Returns the value of thedoubleproperty with the specified name.floatgetFloatProperty(String name)Returns the value of thefloatproperty with the specified name.intgetIntProperty(String name)Returns the value of theintproperty with the specified name.longgetLongProperty(String name)Returns the value of thelongproperty with the specified name.ObjectgetObjectProperty(String name)Returns the value of the Java object property with the specified name.Enumeration<String>getPropertyNames()Returns anEnumerationof all the property names.shortgetShortProperty(String name)Returns the value of theshortproperty with the specified name.StringgetStringProperty(String name)Returns the value of theStringproperty with the specified name.booleanpropertyExists(String name)Indicates whether a property value exists.
-
-
-
Method Detail
-
propertyExists
public boolean propertyExists(String name)
Description copied from interface:JmsPropertiesIndicates whether a property value exists.- Specified by:
propertyExistsin interfaceJmsProperties- Parameters:
name- the name of the property to test- Returns:
- true if the property exists
-
getBooleanProperty
public boolean getBooleanProperty(String name)
Description copied from interface:JmsPropertiesReturns the value of thebooleanproperty with the specified name.- Specified by:
getBooleanPropertyin interfaceJmsProperties- Parameters:
name- the name of thebooleanproperty- Returns:
- the
booleanproperty value for the specified name
-
getByteProperty
public byte getByteProperty(String name)
Description copied from interface:JmsPropertiesReturns the value of thebyteproperty with the specified name.- Specified by:
getBytePropertyin interfaceJmsProperties- Parameters:
name- the name of thebyteproperty- Returns:
- the
byteproperty value for the specified name
-
getShortProperty
public short getShortProperty(String name)
Description copied from interface:JmsPropertiesReturns the value of theshortproperty with the specified name.- Specified by:
getShortPropertyin interfaceJmsProperties- Parameters:
name- the name of theshortproperty- Returns:
- the
shortproperty value for the specified name
-
getIntProperty
public int getIntProperty(String name)
Description copied from interface:JmsPropertiesReturns the value of theintproperty with the specified name.- Specified by:
getIntPropertyin interfaceJmsProperties- Parameters:
name- the name of theintproperty- Returns:
- the
intproperty value for the specified name
-
getLongProperty
public long getLongProperty(String name)
Description copied from interface:JmsPropertiesReturns the value of thelongproperty with the specified name.- Specified by:
getLongPropertyin interfaceJmsProperties- Parameters:
name- the name of thelongproperty- Returns:
- the
longproperty value for the specified name
-
getFloatProperty
public float getFloatProperty(String name)
Description copied from interface:JmsPropertiesReturns the value of thefloatproperty with the specified name.- Specified by:
getFloatPropertyin interfaceJmsProperties- Parameters:
name- the name of thefloatproperty- Returns:
- the
floatproperty value for the specified name
-
getDoubleProperty
public double getDoubleProperty(String name)
Description copied from interface:JmsPropertiesReturns the value of thedoubleproperty with the specified name.- Specified by:
getDoublePropertyin interfaceJmsProperties- Parameters:
name- the name of thedoubleproperty- Returns:
- the
doubleproperty value for the specified name
-
getStringProperty
public String getStringProperty(String name)
Description copied from interface:JmsPropertiesReturns the value of theStringproperty with the specified name.- Specified by:
getStringPropertyin interfaceJmsProperties- Parameters:
name- the name of theStringproperty- Returns:
- the
Stringproperty value for the specified name; if there is no property by this name, a null value is returned
-
getObjectProperty
public Object getObjectProperty(String name)
Description copied from interface:JmsPropertiesReturns the value of the Java object property with the specified name.This method can be used to return, in objectified format, an object that has been stored as a property in the message with the equivalent
setObjectPropertymethod call, or its equivalent primitivesettypePropertymethod.- Specified by:
getObjectPropertyin interfaceJmsProperties- Parameters:
name- the name of the Java object property- Returns:
- the Java object property value with the specified name, in objectified format (for example, if the property
was set as an
int, anIntegeris returned); if there is no property by this name, a null value is returned
-
getPropertyNames
public Enumeration<String> getPropertyNames()
Description copied from interface:JmsPropertiesReturns anEnumerationof all the property names.Note that Jakarta Messaging standard header fields are not considered properties and are not returned in this enumeration.
- Specified by:
getPropertyNamesin interfaceJmsProperties- Returns:
- an enumeration of all the names of property values
-
-