public static class JmsPropertiesBuilder.OutgoingJmsProperties extends Object implements JmsProperties
Constructor and Description |
---|
OutgoingJmsProperties(Map<String,JmsPropertiesBuilder.Property<?>> properties) |
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanProperty(String name)
Returns the value of the
boolean property with the specified name. |
byte |
getByteProperty(String name)
Returns the value of the
byte property with the specified name. |
double |
getDoubleProperty(String name)
Returns the value of the
double property with the specified name. |
float |
getFloatProperty(String name)
Returns the value of the
float property with the specified name. |
int |
getIntProperty(String name)
Returns the value of the
int property with the specified name. |
long |
getLongProperty(String name)
Returns the value of the
long property with the specified name. |
Object |
getObjectProperty(String name)
Returns the value of the Java object property with the specified name.
|
Collection<JmsPropertiesBuilder.Property<?>> |
getProperties() |
Enumeration<String> |
getPropertyNames()
Returns an
Enumeration of all the property names. |
short |
getShortProperty(String name)
Returns the value of the
short property with the specified name. |
String |
getStringProperty(String name)
Returns the value of the
String property with the specified name. |
boolean |
propertyExists(String name)
Indicates whether a property value exists.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
builder
public OutgoingJmsProperties(Map<String,JmsPropertiesBuilder.Property<?>> properties)
public boolean propertyExists(String name)
JmsProperties
propertyExists
in interface JmsProperties
name
- the name of the property to testpublic boolean getBooleanProperty(String name)
JmsProperties
boolean
property with the specified name.getBooleanProperty
in interface JmsProperties
name
- the name of the boolean
propertyboolean
property value for the specified namepublic byte getByteProperty(String name)
JmsProperties
byte
property with the specified name.getByteProperty
in interface JmsProperties
name
- the name of the byte
propertybyte
property value for the specified namepublic short getShortProperty(String name)
JmsProperties
short
property with the specified name.getShortProperty
in interface JmsProperties
name
- the name of the short
propertyshort
property value for the specified namepublic int getIntProperty(String name)
JmsProperties
int
property with the specified name.getIntProperty
in interface JmsProperties
name
- the name of the int
propertyint
property value for the specified namepublic long getLongProperty(String name)
JmsProperties
long
property with the specified name.getLongProperty
in interface JmsProperties
name
- the name of the long
propertylong
property value for the specified namepublic float getFloatProperty(String name)
JmsProperties
float
property with the specified name.getFloatProperty
in interface JmsProperties
name
- the name of the float
propertyfloat
property value for the specified namepublic double getDoubleProperty(String name)
JmsProperties
double
property with the specified name.getDoubleProperty
in interface JmsProperties
name
- the name of the double
propertydouble
property value for the specified namepublic String getStringProperty(String name)
JmsProperties
String
property with the specified name.getStringProperty
in interface JmsProperties
name
- the name of the String
propertyString
property value for the specified name; if there is no property by this name, a null value
is returnedpublic Object getObjectProperty(String name)
JmsProperties
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 setObjectProperty
method call, or its equivalent primitive
settypeProperty
method.
getObjectProperty
in interface JmsProperties
name
- the name of the Java object propertyint
, an Integer
is returned); if there is no property by this name, a null value is
returnedpublic Enumeration<String> getPropertyNames()
JmsProperties
Enumeration
of all the property names.
Note that Jakarta Messaging standard header fields are not considered properties and are not returned in this enumeration.
getPropertyNames
in interface JmsProperties
public Collection<JmsPropertiesBuilder.Property<?>> getProperties()
Copyright © 2018–2021 SmallRye. All rights reserved.