public enum MatsScenario extends java.lang.Enum<MatsScenario>
ScenarioConnectionFactoryWrapper
juggles between based on the
results of a set of three ScenarioConnectionFactoryWrapper.ScenarioDecider
s, with an optional default choice.
The method ConfigurableScenarioDecider.createDefaultScenarioDecider()
creates a
ConfigurableScenarioDecider
that sets up the standard links between the different MatsProfiles
values
and these scenarios, as described in the JavaDoc of those values.
The main documentation for this MatsScenario concept is in the JavaDoc of
ScenarioConnectionFactoryProducer
.Enum Constant and Description |
---|
LOCALHOST
NOTICE: Only meant for development and testing.
|
LOCALVM
NOTICE: Only meant for development and testing.
|
REGULAR
For Production, Staging, Pre-prod, etc.
|
Modifier and Type | Method and Description |
---|---|
static MatsScenario |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MatsScenario[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MatsScenario REGULAR
ScenarioConnectionFactoryProducer#withRegularConnectionFactory(ConnectionFactoryProvider)
public static final MatsScenario LOCALHOST
ScenarioConnectionFactoryProducer#withLocalhostConnectionFactory(ConnectionFactoryProvider)
public static final MatsScenario LOCALVM
ScenarioConnectionFactoryProducer#withLocalVmConnectionFactory(ConnectionFactoryProvider)
public static MatsScenario[] values()
for (MatsScenario c : MatsScenario.values()) System.out.println(c);
public static MatsScenario 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