Class ParameterisedAddress
java.lang.Object
org.apache.activemq.artemis.api.core.ParameterisedAddress
-
Constructor Summary
ConstructorsConstructorDescriptionParameterisedAddress
(String address) ParameterisedAddress
(String address, QueueAttributes queueAttributes) Deprecated.ParameterisedAddress
(String address, QueueConfiguration queueConfiguration) ParameterisedAddress
(SimpleString address) ParameterisedAddress
(SimpleString address, QueueAttributes queueAttributes) Deprecated.ParameterisedAddress
(SimpleString address, QueueConfiguration queueConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
extractAddress
(String address) Given an address string, extract only the address portion if the address is parameterized, otherwise just return the provided address.static SimpleString
extractAddress
(SimpleString address) extractParameters
(String address) Given an address string, extract only the query portion if the address is parameterized, otherwise return an emptyMap
.Deprecated.boolean
static boolean
isParameterised
(String address) static boolean
isParameterised
(SimpleString address) static String
toParameterisedAddress
(String address, Map<String, String> parameters) static SimpleString
toParameterisedAddress
(SimpleString address, Map<String, String> parameters)
-
Constructor Details
-
ParameterisedAddress
Deprecated. -
ParameterisedAddress
-
ParameterisedAddress
Deprecated. -
ParameterisedAddress
-
ParameterisedAddress
-
ParameterisedAddress
-
-
Method Details
-
toParameterisedAddress
public static SimpleString toParameterisedAddress(SimpleString address, Map<String, String> parameters) -
toParameterisedAddress
-
getAddress
-
getQueueAttributes
Deprecated. -
getQueueConfiguration
-
isParameterised
public boolean isParameterised() -
isParameterised
-
isParameterised
-
extractAddress
-
extractParameters
Given an address string, extract only the query portion if the address is parameterized, otherwise return an emptyMap
.- Parameters:
address
- The address to operate on.- Returns:
- a
Map
containing the parameters associated with the given address.
-
extractAddress
Given an address string, extract only the address portion if the address is parameterized, otherwise just return the provided address.- Parameters:
address
- The address to operate on.- Returns:
- the original address minus any appended parameters.
-