Class BatchConfig.Builder
java.lang.Object
io.floci.testcontainers.config.services.AbstractServiceConfigBuilder<BatchConfig.Builder,BatchConfig>
io.floci.testcontainers.config.services.BatchConfig.Builder
- Enclosing class:
- BatchConfig
public static class BatchConfig.Builder
extends AbstractServiceConfigBuilder<BatchConfig.Builder,BatchConfig>
Builder for
BatchConfig.-
Field Summary
Fields inherited from class io.floci.testcontainers.config.services.AbstractServiceConfigBuilder
enabled -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates an immutableBatchConfigfrom this builder.dockerNetwork(String dockerNetwork) Sets the Docker network that Batch containers should join.runnerMode(String runnerMode) Sets the runner mode used for Batch jobs.Methods inherited from class io.floci.testcontainers.config.services.AbstractServiceConfigBuilder
enabled
-
Method Details
-
runnerMode
Sets the runner mode used for Batch jobs.- Parameters:
runnerMode- the runner mode (default "immediate")- Returns:
- this builder
-
dockerNetwork
Sets the Docker network that Batch containers should join.- Parameters:
dockerNetwork- the network name, ornullto use the default bridge- Returns:
- this builder
-
build
Creates an immutableBatchConfigfrom this builder.- Specified by:
buildin classAbstractServiceConfigBuilder<BatchConfig.Builder,BatchConfig> - Returns:
- the Batch configuration
-