Class ParameterisedAddress

java.lang.Object
org.apache.activemq.artemis.api.core.ParameterisedAddress

public class ParameterisedAddress extends Object
  • Constructor Details

  • Method Details

    • 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 empty Map.
      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.