Class AppSyncConfig.Builder

Enclosing class:
AppSyncConfig

public static class AppSyncConfig.Builder extends AbstractServiceConfigBuilder<AppSyncConfig.Builder,AppSyncConfig>
Builder for AppSyncConfig.
  • Method Details

    • schemaWorkerThreads

      public AppSyncConfig.Builder schemaWorkerThreads(int schemaWorkerThreads)
      Sets the number of worker threads used for asynchronous schema creation.
      Parameters:
      schemaWorkerThreads - the number of worker threads (default 4)
      Returns:
      this builder
    • schemaWorkerShutdownTimeoutSeconds

      public AppSyncConfig.Builder schemaWorkerShutdownTimeoutSeconds(int schemaWorkerShutdownTimeoutSeconds)
      Sets the number of seconds to wait for in-flight schema workers on shutdown.
      Parameters:
      schemaWorkerShutdownTimeoutSeconds - timeout in seconds (default 30)
      Returns:
      this builder
    • build

      public AppSyncConfig build()
      Creates an immutable AppSyncConfig from this builder.
      Specified by:
      build in class AbstractServiceConfigBuilder<AppSyncConfig.Builder,AppSyncConfig>
      Returns:
      the AppSync configuration