Enum Class MatsTestBroker.ActiveMq

All Implemented Interfaces:
Serializable, Comparable<MatsTestBroker.ActiveMq>, Constable
Enclosing interface:

public static enum MatsTestBroker.ActiveMq extends Enum<MatsTestBroker.ActiveMq>
Feature flags for the method MatsTestBroker.newActiveMqBroker(ActiveMq...) - which you probably shouldn't do unless you are experimenting with the "mats-examples". For testing of your code, use the MatsTestBroker class directly.
  • Enum Constant Details


      public static final MatsTestBroker.ActiveMq LOCALHOST
      Add a Localhost TransportConnector, so that the broker is available on localhost:61616 in addition to in-vm connector.

      public static final MatsTestBroker.ActiveMq PERSISTENT
      Enable broker persistence, using KahaDB.

      public static final MatsTestBroker.ActiveMq SHUTDOWNHOOK
      Add a shutdown hook, to cleanly shut down the broker upon JVM shutdown, i.e. Ctrl-C or IDE stop.
    • JMX

      public static final MatsTestBroker.ActiveMq JMX
      Enable the JMX support, via BrokerService.setUseJmx(boolean).

      public static final MatsTestBroker.ActiveMq ADVISORY
      Enable the advisory topics, via BrokerService.setAdvisorySupport(boolean) and BrokerService.setAnonymousProducerAdvisorySupport(boolean). I've never used them, but hey.
  • Method Details

    • values

      public static MatsTestBroker.ActiveMq[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MatsTestBroker.ActiveMq valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null