Interface RuntimeConfiguration.Builder

All Superinterfaces:
Buildable, CopyableBuilder<RuntimeConfiguration.Builder,RuntimeConfiguration>, SdkBuilder<RuntimeConfiguration.Builder,RuntimeConfiguration>, SdkPojo
Enclosing class:
RuntimeConfiguration

public static interface RuntimeConfiguration.Builder extends SdkPojo, CopyableBuilder<RuntimeConfiguration.Builder,RuntimeConfiguration>
  • Method Details

    • serverProcesses

      RuntimeConfiguration.Builder serverProcesses(Collection<ServerProcess> serverProcesses)

      A collection of server process configurations that identify what server processes to run on each instance in a fleet.

      Parameters:
      serverProcesses - A collection of server process configurations that identify what server processes to run on each instance in a fleet.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serverProcesses

      RuntimeConfiguration.Builder serverProcesses(ServerProcess... serverProcesses)

      A collection of server process configurations that identify what server processes to run on each instance in a fleet.

      Parameters:
      serverProcesses - A collection of server process configurations that identify what server processes to run on each instance in a fleet.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serverProcesses

      RuntimeConfiguration.Builder serverProcesses(Consumer<ServerProcess.Builder>... serverProcesses)

      A collection of server process configurations that identify what server processes to run on each instance in a fleet.

      This is a convenience method that creates an instance of the ServerProcess.Builder avoiding the need to create one manually via ServerProcess.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to serverProcesses(List<ServerProcess>).

      Parameters:
      serverProcesses - a consumer that will call methods on ServerProcess.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • maxConcurrentGameSessionActivations

      RuntimeConfiguration.Builder maxConcurrentGameSessionActivations(Integer maxConcurrentGameSessionActivations)

      The number of game sessions in status ACTIVATING to allow on an instance. This setting limits the instance resources that can be used for new game activations at any one time.

      Parameters:
      maxConcurrentGameSessionActivations - The number of game sessions in status ACTIVATING to allow on an instance. This setting limits the instance resources that can be used for new game activations at any one time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • gameSessionActivationTimeoutSeconds

      RuntimeConfiguration.Builder gameSessionActivationTimeoutSeconds(Integer gameSessionActivationTimeoutSeconds)

      The maximum amount of time (in seconds) allowed to launch a new game session and have it report ready to host players. During this time, the game session is in status ACTIVATING. If the game session does not become active before the timeout, it is ended and the game session status is changed to TERMINATED.

      Parameters:
      gameSessionActivationTimeoutSeconds - The maximum amount of time (in seconds) allowed to launch a new game session and have it report ready to host players. During this time, the game session is in status ACTIVATING. If the game session does not become active before the timeout, it is ended and the game session status is changed to TERMINATED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.