Class ParameterisedAddress
- java.lang.Object
-
- org.apache.activemq.artemis.api.core.ParameterisedAddress
-
public class ParameterisedAddress extends Object
-
-
Constructor Summary
Constructors Constructor Description ParameterisedAddress(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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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)
static Map<String,String>
extractParameters(String address)
Given an address string, extract only the query portion if the address is parameterized, otherwise return an emptyMap
.SimpleString
getAddress()
QueueAttributes
getQueueAttributes()
Deprecated.QueueConfiguration
getQueueConfiguration()
boolean
isParameterised()
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 Detail
-
ParameterisedAddress
@Deprecated public ParameterisedAddress(SimpleString address, QueueAttributes queueAttributes)
Deprecated.
-
ParameterisedAddress
public ParameterisedAddress(SimpleString address, QueueConfiguration queueConfiguration)
-
ParameterisedAddress
@Deprecated public ParameterisedAddress(String address, QueueAttributes queueAttributes)
Deprecated.
-
ParameterisedAddress
public ParameterisedAddress(String address, QueueConfiguration queueConfiguration)
-
ParameterisedAddress
public ParameterisedAddress(SimpleString address)
-
ParameterisedAddress
public ParameterisedAddress(String address)
-
-
Method Detail
-
toParameterisedAddress
public static SimpleString toParameterisedAddress(SimpleString address, Map<String,String> parameters)
-
toParameterisedAddress
public static String toParameterisedAddress(String address, Map<String,String> parameters)
-
getAddress
public SimpleString getAddress()
-
getQueueAttributes
@Deprecated public QueueAttributes getQueueAttributes()
Deprecated.
-
getQueueConfiguration
public QueueConfiguration getQueueConfiguration()
-
isParameterised
public boolean isParameterised()
-
isParameterised
public static boolean isParameterised(String address)
-
isParameterised
public static boolean isParameterised(SimpleString address)
-
extractAddress
public static SimpleString extractAddress(SimpleString address)
-
extractParameters
public static Map<String,String> extractParameters(String address)
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
public static String extractAddress(String address)
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.
-
-