Class DivertConfiguration
java.lang.Object
org.apache.activemq.artemis.core.config.DivertConfiguration
- All Implemented Interfaces:
Serializable,EncodingSupport
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(ActiveMQBuffer buffer) voidencode(ActiveMQBuffer buffer) booleanstatic DivertConfigurationThis method returns aDivertConfigurationcreated from the JSON-formatted inputString.intgetName()inthashCode()booleanSet the value of a parameter based on its "key"String.setAddress(String address) setExclusive(boolean exclusive) setFilterString(String filterString) setForwardingAddress(String forwardingAddress) setRoutingName(String routingName) Sets theroutingName.setRoutingType(ComponentConfigurationRoutingType routingType) setTransformerConfiguration(TransformerConfiguration transformerConfiguration) toJSON()This method returns a JSON-formattedStringrepresentation of thisDivertConfiguration.toString()
-
Field Details
-
NAME
-
ROUTING_NAME
-
ADDRESS
-
FORWARDING_ADDRESS
-
EXCLUSIVE
-
FILTER_STRING
-
TRANSFORMER_CONFIGURATION
-
ROUTING_TYPE
-
-
Constructor Details
-
DivertConfiguration
public DivertConfiguration()
-
-
Method Details
-
set
Set the value of a parameter based on its "key"String. Valid key names and correspondingstaticfinalare:- name:
NAME - routing-name:
ROUTING_NAME - address:
ADDRESS - forwarding-address:
FORWARDING_ADDRESS - exclusive:
EXCLUSIVE - filter-string:
FILTER_STRING - transformer-configuration:
TRANSFORMER_CONFIGURATION - routing-type:
ROUTING_TYPE
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" theString"TRUE" will be converted to theBooleantrue.- Parameters:
key- the key to set to the valuevalue- the value to set for the key- Returns:
- this
DivertConfiguration
- name:
-
getName
-
getRoutingName
-
getAddress
-
getForwardingAddress
-
isExclusive
public boolean isExclusive() -
getFilterString
-
getTransformerConfiguration
-
getRoutingType
-
setName
-
setRoutingName
Sets theroutingName. If the input isnullthen a randomroutingNamewill be generated.- Parameters:
routingName- the routingName to set
-
setAddress
-
setForwardingAddress
-
setExclusive
-
setFilterString
-
setTransformerConfiguration
public DivertConfiguration setTransformerConfiguration(TransformerConfiguration transformerConfiguration) -
setRoutingType
-
toJSON
This method returns a JSON-formattedStringrepresentation of thisDivertConfiguration. It is a simple collection of key/value pairs. The keys used are referenced inset(String, String).- Returns:
- a JSON-formatted
Stringrepresentation of thisDivertConfiguration
-
fromJSON
This method returns aDivertConfigurationcreated from the JSON-formatted inputString. The input should be a simple object of key/value pairs. Valid keys are referenced inset(String, String).- Parameters:
jsonString- json string- Returns:
- the
DivertConfigurationcreated from the JSON-formatted inputString
-
hashCode
public int hashCode() -
equals
-
getEncodeSize
public int getEncodeSize()- Specified by:
getEncodeSizein interfaceEncodingSupport
-
encode
- Specified by:
encodein interfaceEncodingSupport
-
toString
-
decode
- Specified by:
decodein interfaceEncodingSupport
-