Enum Class MatsTestBroker.ActiveMq

java.lang.Object
java.lang.Enum<MatsTestBroker.ActiveMq>
io.mats3.test.broker.MatsTestBroker.ActiveMq
All Implemented Interfaces:
Serializable, Comparable<MatsTestBroker.ActiveMq>, Constable
Enclosing interface:
MatsTestBroker

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

    • LOCALHOST

      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.
    • PERSISTENT

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

      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).
    • ADVISORY

      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.
      Returns:
      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.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null