Class ExchangeNode

java.lang.Object
org.acemq.workloads.scenario.ExchangeNode
All Implemented Interfaces:
Node

public final class ExchangeNode extends Object implements Node
An exchange in a scenario.
  • Method Details

    • type

      public ExchangeNode type(String type)
      Parameters:
      type - direct, topic, fanout or headers
      Returns:
      this node
    • transient_

      public ExchangeNode transient_()
      Returns:
      this node, not surviving a broker restart
    • argument

      public ExchangeNode argument(String name, Object value)
      Parameters:
      name - an exchange argument, such as alternate-exchange
      value - its value
      Returns:
      this node
    • enabled

      public ExchangeNode enabled(boolean enabled)
      Parameters:
      enabled - whether it takes part in the run
      Returns:
      this node
    • name

      public String name()
      Specified by:
      name in interface Node
      Returns:
      what this node is called
    • type

      public String type()
    • isDurable

      public boolean isDurable()
    • arguments

      public Map<String,Object> arguments()
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface Node
      Returns:
      whether it takes part in the run
    • toString

      public String toString()
      Overrides:
      toString in class Object