org.wildfly.swarm.config.messaging.activemq.server

## Class Divert<T extends Divert<T>>

- java.lang.Object
- - org.wildfly.swarm.config.messaging.activemq.server.Divert<T>

-     public class Divert<T extends Divert<T>>
      extends Object

  A messaging resource that allows you to transparently divert messages routed to one address to some other address, without making any changes to any client application logic.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Divert(String key)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addPropertyChangeListener(PropertyChangeListener listener)` Adds a property change listener
    `String` | `divertAddress()` Address to divert from
    `T` | `divertAddress(String value)` Address to divert from
    `Boolean` | `exclusive()` Whether the divert is exclusive, meaning that the message is diverted to the new address, and does not go to the old address at all.
    `T` | `exclusive(Boolean value)` Whether the divert is exclusive, meaning that the message is diverted to the new address, and does not go to the old address at all.
    `String` | `filter()` An optional filter string.
    `T` | `filter(String value)` An optional filter string.
    `String` | `forwardingAddress()` Address to divert to
    `T` | `forwardingAddress(String value)` Address to divert to
    `String` | `getKey()`
    `void` | `removePropertyChangeListener(PropertyChangeListener listener)` Removes a property change listener
    `String` | `routingName()` Routing name of the divert
    `T` | `routingName(String value)` Routing name of the divert
    `String` | `transformerClassName()` The name of a class used to transform the message's body or properties before it is diverted.
    `T` | `transformerClassName(String value)` The name of a class used to transform the message's body or properties before it is diverted.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Divert

          public Divert(String key)

  - ### Method Detail

    - #### getKey

          public String getKey()

    - #### addPropertyChangeListener

          public void addPropertyChangeListener(PropertyChangeListener listener)

      Adds a property change listener

    - #### removePropertyChangeListener

          public void removePropertyChangeListener(PropertyChangeListener listener)

      Removes a property change listener

    - #### divertAddress

          public String divertAddress()

      Address to divert from

    - #### divertAddress

          public T divertAddress(String value)

      Address to divert from

    - #### exclusive

          public Boolean exclusive()

      Whether the divert is exclusive, meaning that the message is diverted to the new address, and does not go to the old address at all.

    - #### exclusive

          public T exclusive(Boolean value)

      Whether the divert is exclusive, meaning that the message is diverted to the new address, and does not go to the old address at all.

    - #### filter

          public String filter()

      An optional filter string. If specified then only messages which match the filter expression specified will be diverted. The filter string follows the ActiveMQ filter expression syntax described in the ActiveMQ documentation.

    - #### filter

          public T filter(String value)

      An optional filter string. If specified then only messages which match the filter expression specified will be diverted. The filter string follows the ActiveMQ filter expression syntax described in the ActiveMQ documentation.

    - #### forwardingAddress

          public String forwardingAddress()

      Address to divert to

    - #### forwardingAddress

          public T forwardingAddress(String value)

      Address to divert to

    - #### routingName

          public String routingName()

      Routing name of the divert

    - #### routingName

          public T routingName(String value)

      Routing name of the divert

    - #### transformerClassName

          public String transformerClassName()

      The name of a class used to transform the message's body or properties before it is diverted.

    - #### transformerClassName

          public T transformerClassName(String value)

      The name of a class used to transform the message's body or properties before it is diverted.

Copyright © 2017 JBoss by Red Hat. All rights reserved.