Package io.mats3.test.broker
Enum Class MatsTestBroker.ActiveMq
- All Implemented Interfaces:
Serializable
,Comparable<MatsTestBroker.ActiveMq>
,Constable
- Enclosing interface:
- MatsTestBroker
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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEnable the advisory topics, viaBrokerService.setAdvisorySupport(boolean)
andBrokerService.setAnonymousProducerAdvisorySupport(boolean)
.Enable the JMX support, viaBrokerService.setUseJmx(boolean)
.Add a LocalhostTransportConnector
, so that the broker is available onlocalhost:61616
in addition to in-vm connector.Enable broker persistence, using KahaDB.Add a shutdown hook, to cleanly shut down the broker upon JVM shutdown, i.e. -
Method Summary
Modifier and TypeMethodDescriptionstatic MatsTestBroker.ActiveMq
Returns the enum constant of this class with the specified name.static MatsTestBroker.ActiveMq[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOCALHOST
Add a LocalhostTransportConnector
, so that the broker is available onlocalhost:61616
in addition to in-vm connector. -
PERSISTENT
Enable broker persistence, using KahaDB. -
SHUTDOWNHOOK
Add a shutdown hook, to cleanly shut down the broker upon JVM shutdown, i.e. Ctrl-C or IDE stop. -
JMX
Enable the JMX support, viaBrokerService.setUseJmx(boolean)
. -
ADVISORY
Enable the advisory topics, viaBrokerService.setAdvisorySupport(boolean)
andBrokerService.setAnonymousProducerAdvisorySupport(boolean)
. I've never used them, but hey.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-