Class AppSyncConfig
java.lang.Object
io.floci.testcontainers.config.services.AbstractServiceConfig<AppSyncConfig.Builder>
io.floci.testcontainers.config.services.AppSyncConfig
Configuration for AppSync-specific container settings.
Instances are created via AppSyncConfig.Builder:
AppSyncConfig config = AppSyncConfig.builder()
.build();
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class io.floci.testcontainers.config.services.AbstractServiceConfig
DEFAULT_ENABLED -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyEnvVarsToContainer(org.testcontainers.containers.Container<?> container) Applies this service configuration to the given container by setting the appropriate environment variables.static AppSyncConfig.Builderbuilder()Returns a newAppSyncConfig.Builderfor this configuration.intReturns the number of seconds to wait for in-flight schema workers on shutdown.intReturns the number of worker threads used for asynchronous schema creation.Returns a newAppSyncConfig.Builderfor this configuration, initialized with the current values of this instance.Methods inherited from class io.floci.testcontainers.config.services.AbstractServiceConfig
applyExposedPortsToContainer, isEnabled
-
Method Details
-
builder
Returns a newAppSyncConfig.Builderfor this configuration.- Returns:
- a new builder
-
toBuilder
Returns a newAppSyncConfig.Builderfor this configuration, initialized with the current values of this instance.- Specified by:
toBuilderin classAbstractServiceConfig<AppSyncConfig.Builder>- Returns:
- a new builder pre-populated with this configuration's values
-
getSchemaWorkerThreads
public int getSchemaWorkerThreads()Returns the number of worker threads used for asynchronous schema creation.- Returns:
- the number of worker threads
-
getSchemaWorkerShutdownTimeoutSeconds
public int getSchemaWorkerShutdownTimeoutSeconds()Returns the number of seconds to wait for in-flight schema workers on shutdown.- Returns:
- timeout in seconds
-
applyEnvVarsToContainer
public void applyEnvVarsToContainer(org.testcontainers.containers.Container<?> container) Description copied from class:AbstractServiceConfigApplies this service configuration to the given container by setting the appropriate environment variables.- Overrides:
applyEnvVarsToContainerin classAbstractServiceConfig<AppSyncConfig.Builder>- Parameters:
container- the container to configure
-