public static enum MatsTestBroker.ActiveMq extends java.lang.Enum<MatsTestBroker.ActiveMq>
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 and Description |
---|
ADVISORY
Enable the advisory topics, via
BrokerService.setAdvisorySupport(boolean) and
BrokerService.setAnonymousProducerAdvisorySupport(boolean) . |
JMX
Enable the JMX support, via
BrokerService.setUseJmx(boolean) . |
LOCALHOST
Add a Localhost
TransportConnector , so that the broker is available on
localhost: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.
|
Modifier and Type | Method and Description |
---|---|
static MatsTestBroker.ActiveMq |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MatsTestBroker.ActiveMq[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MatsTestBroker.ActiveMq LOCALHOST
TransportConnector
, so that the broker is available on
localhost:61616
in addition to in-vm connector.public static final MatsTestBroker.ActiveMq PERSISTENT
public static final MatsTestBroker.ActiveMq SHUTDOWNHOOK
public static final MatsTestBroker.ActiveMq JMX
BrokerService.setUseJmx(boolean)
.public static final MatsTestBroker.ActiveMq ADVISORY
BrokerService.setAdvisorySupport(boolean)
and
BrokerService.setAnonymousProducerAdvisorySupport(boolean)
. I've never used them, but hey.public static MatsTestBroker.ActiveMq[] values()
for (MatsTestBroker.ActiveMq c : MatsTestBroker.ActiveMq.values()) System.out.println(c);
public static MatsTestBroker.ActiveMq valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null