Interface RuntimeConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RuntimeConfiguration.Builder,
,RuntimeConfiguration> SdkBuilder<RuntimeConfiguration.Builder,
,RuntimeConfiguration> SdkPojo
- Enclosing class:
RuntimeConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiongameSessionActivationTimeoutSeconds
(Integer gameSessionActivationTimeoutSeconds) The maximum amount of time (in seconds) allowed to launch a new game session and have it report ready to host players.maxConcurrentGameSessionActivations
(Integer maxConcurrentGameSessionActivations) The number of game sessions in statusACTIVATING
to allow on an instance.serverProcesses
(Collection<ServerProcess> serverProcesses) A collection of server process configurations that identify what server processes to run on each instance in a fleet.serverProcesses
(Consumer<ServerProcess.Builder>... serverProcesses) A collection of server process configurations that identify what server processes to run on each instance in a fleet.serverProcesses
(ServerProcess... serverProcesses) A collection of server process configurations that identify what server processes to run on each instance in a fleet.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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 theServerProcess.Builder
avoiding the need to create one manually viaServerProcess.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toserverProcesses(List<ServerProcess>)
.- Parameters:
serverProcesses
- a consumer that will call methods onServerProcess.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 statusACTIVATING
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 toTERMINATED
.- 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 statusACTIVATING
. If the game session does not become active before the timeout, it is ended and the game session status is changed toTERMINATED
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-