Package io.molr.mole.core.runnable.lang
Class OngoingExecutionStrategyConfiguration
- java.lang.Object
-
- io.molr.mole.core.runnable.lang.OngoingExecutionStrategyConfiguration
-
public class OngoingExecutionStrategyConfiguration extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OngoingExecutionStrategyConfiguration
allowAll()
Allow for all strategies to be used with this mission.OngoingExecutionStrategyConfiguration
allowed(io.molr.commons.domain.ExecutionStrategy... strategies)
Sets the allowed strategies the mission can be configured with.OngoingExecutionStrategyConfiguration
defaultsTo(io.molr.commons.domain.ExecutionStrategy executionStrategy)
Sets the defaultExecutionStrategy
for this mission.
-
-
-
Method Detail
-
defaultsTo
public OngoingExecutionStrategyConfiguration defaultsTo(io.molr.commons.domain.ExecutionStrategy executionStrategy)
Sets the defaultExecutionStrategy
for this mission. If none defaultExecutionStrategy
is specified molr will either use the global default or the one and only allowed strategy if and only if exactly one strategy has been specified byallowed(io.molr.commons.domain.ExecutionStrategy...)
. If multiple allowed strategies have been specified the default strategy must be a member of the allowed strategies.- Parameters:
executionStrategy
- to be setup as default strategy- Returns:
- the configuration object configured with default execution strategy
-
allowed
public OngoingExecutionStrategyConfiguration allowed(io.molr.commons.domain.ExecutionStrategy... strategies)
Sets the allowed strategies the mission can be configured with.- Parameters:
strategies
- to be set up as allowed strategies- Returns:
- the configuration object configured with allowed strategies
-
allowAll
public OngoingExecutionStrategyConfiguration allowAll()
Allow for all strategies to be used with this mission.- Returns:
- the configuration object with all strategies as allowed strategies
-
-