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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(ActiveMQBuffer buffer) void
encode
(ActiveMQBuffer buffer) boolean
static DivertConfiguration
This method returns aDivertConfiguration
created from the JSON-formatted inputString
.int
getName()
org.apache.activemq.artemis.core.server.ComponentConfigurationRoutingType
int
hashCode()
boolean
Set 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) setRoutingType
(org.apache.activemq.artemis.core.server.ComponentConfigurationRoutingType routingType) setTransformerConfiguration
(TransformerConfiguration transformerConfiguration) toJSON()
This method returns a JSON-formattedString
representation 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 correspondingstatic
final
are:- 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
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" theString
"TRUE" will be converted to theBoolean
true
.- 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
public org.apache.activemq.artemis.core.server.ComponentConfigurationRoutingType getRoutingType() -
setName
- Parameters:
name
- the name to set
-
setRoutingName
- Parameters:
routingName
- the routingName to set
-
setAddress
- Parameters:
address
- the address to set
-
setForwardingAddress
- Parameters:
forwardingAddress
- the forwardingAddress to set
-
setExclusive
- Parameters:
exclusive
- the exclusive to set
-
setFilterString
- 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
This method returns a JSON-formattedString
representation of thisDivertConfiguration
. It is a simple collection of key/value pairs. The keys used are referenced inset(String, String)
.- Returns:
- a JSON-formatted
String
representation of thisDivertConfiguration
-
fromJSON
This method returns aDivertConfiguration
created 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
DivertConfiguration
created from the JSON-formatted inputString
-
hashCode
public int hashCode() -
equals
-
getEncodeSize
public int getEncodeSize()- Specified by:
getEncodeSize
in interfaceorg.apache.activemq.artemis.core.journal.EncodingSupport
-
encode
- Specified by:
encode
in interfaceorg.apache.activemq.artemis.core.journal.EncodingSupport
-
toString
-
decode
- Specified by:
decode
in interfaceorg.apache.activemq.artemis.core.journal.EncodingSupport
-