@Stability(value=Stable)
public static interface CfnGameSessionQueue.PlayerLatencyPolicyProperty
extends software.amazon.jsii.JsiiSerializable
When a latency policy is in force, a game session cannot be placed with any fleet in a Region where a player reports latency higher than the cap. Latency policies are only enforced when the placement request contains player latency information.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.gamelift.*;
PlayerLatencyPolicyProperty playerLatencyPolicyProperty = PlayerLatencyPolicyProperty.builder()
.maximumIndividualPlayerLatencyMilliseconds(123)
.policyDurationSeconds(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnGameSessionQueue.PlayerLatencyPolicyProperty.Builder
A builder for
CfnGameSessionQueue.PlayerLatencyPolicyProperty |
static class |
CfnGameSessionQueue.PlayerLatencyPolicyProperty.Jsii$Proxy
An implementation for
CfnGameSessionQueue.PlayerLatencyPolicyProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnGameSessionQueue.PlayerLatencyPolicyProperty.Builder |
builder() |
default Number |
getMaximumIndividualPlayerLatencyMilliseconds()
The maximum latency value that is allowed for any player, in milliseconds.
|
default Number |
getPolicyDurationSeconds()
The length of time, in seconds, that the policy is enforced while placing a new game session.
|
@Stability(value=Stable) @Nullable default Number getMaximumIndividualPlayerLatencyMilliseconds()
All policies must have a value set for this property.
@Stability(value=Stable) @Nullable default Number getPolicyDurationSeconds()
A null value for this property means that the policy is enforced until the queue times out.
@Stability(value=Stable) static CfnGameSessionQueue.PlayerLatencyPolicyProperty.Builder builder()
Copyright © 2022. All rights reserved.