Class DivertConfiguration

java.lang.Object
org.apache.activemq.artemis.core.config.DivertConfiguration
All Implemented Interfaces:
Serializable, org.apache.activemq.artemis.core.journal.EncodingSupport

public class DivertConfiguration extends Object implements Serializable, org.apache.activemq.artemis.core.journal.EncodingSupport
See Also:
  • Field Details

    • NAME

      public static String NAME
    • ROUTING_NAME

      public static String ROUTING_NAME
    • ADDRESS

      public static String ADDRESS
    • FORWARDING_ADDRESS

      public static String FORWARDING_ADDRESS
    • EXCLUSIVE

      public static String EXCLUSIVE
    • FILTER_STRING

      public static String FILTER_STRING
    • TRANSFORMER_CONFIGURATION

      public static String TRANSFORMER_CONFIGURATION
    • ROUTING_TYPE

      public static String ROUTING_TYPE
  • Constructor Details

    • DivertConfiguration

      public DivertConfiguration()
  • Method Details

    • set

      public DivertConfiguration set(String key, String value)
      Set the value of a parameter based on its "key" String. Valid key names and corresponding static final are:

      The String-based values will be converted to the proper value types based on the underlying property. For example, if you pass the value "TRUE" for the key "exclusive" the String "TRUE" will be converted to the Boolean true.

      Parameters:
      key - the key to set to the value
      value - the value to set for the key
      Returns:
      this DivertConfiguration
    • getName

      public String getName()
    • getRoutingName

      public String getRoutingName()
    • getAddress

      public String getAddress()
    • getForwardingAddress

      public String getForwardingAddress()
    • isExclusive

      public boolean isExclusive()
    • getFilterString

      public String getFilterString()
    • getTransformerConfiguration

      public TransformerConfiguration getTransformerConfiguration()
    • getRoutingType

      public org.apache.activemq.artemis.core.server.ComponentConfigurationRoutingType getRoutingType()
    • setName

      public DivertConfiguration setName(String name)
      Parameters:
      name - the name to set
    • setRoutingName

      public DivertConfiguration setRoutingName(String routingName)
      Parameters:
      routingName - the routingName to set
    • setAddress

      public DivertConfiguration setAddress(String address)
      Parameters:
      address - the address to set
    • setForwardingAddress

      public DivertConfiguration setForwardingAddress(String forwardingAddress)
      Parameters:
      forwardingAddress - the forwardingAddress to set
    • setExclusive

      public DivertConfiguration setExclusive(boolean exclusive)
      Parameters:
      exclusive - the exclusive to set
    • setFilterString

      public DivertConfiguration setFilterString(String filterString)
      Parameters:
      filterString - the filterString to set
    • setTransformerConfiguration

      public DivertConfiguration setTransformerConfiguration(TransformerConfiguration transformerConfiguration)
      Parameters:
      transformerConfiguration - the transformerConfiguration to set
    • setRoutingType

      public DivertConfiguration setRoutingType(org.apache.activemq.artemis.core.server.ComponentConfigurationRoutingType routingType)
      Parameters:
      routingType - the routingType to set
    • toJSON

      public String toJSON()
      This method returns a JSON-formatted String representation of this DivertConfiguration. It is a simple collection of key/value pairs. The keys used are referenced in set(String, String).
      Returns:
      a JSON-formatted String representation of this DivertConfiguration
    • fromJSON

      public static DivertConfiguration fromJSON(String jsonString)
      This method returns a DivertConfiguration created from the JSON-formatted input String. The input should be a simple object of key/value pairs. Valid keys are referenced in set(String, String).
      Parameters:
      jsonString - json string
      Returns:
      the DivertConfiguration created from the JSON-formatted input String
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getEncodeSize

      public int getEncodeSize()
      Specified by:
      getEncodeSize in interface org.apache.activemq.artemis.core.journal.EncodingSupport
    • encode

      public void encode(ActiveMQBuffer buffer)
      Specified by:
      encode in interface org.apache.activemq.artemis.core.journal.EncodingSupport
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • decode

      public void decode(ActiveMQBuffer buffer)
      Specified by:
      decode in interface org.apache.activemq.artemis.core.journal.EncodingSupport