@Generated(value="software.amazon.awssdk:codegen") public final class PlayerLatencyPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PlayerLatencyPolicy.Builder,PlayerLatencyPolicy>
Sets a latency cap for individual players when placing a game session. With a latency policy in force, a game session cannot be placed in a fleet location where a player reports latency higher than the cap. Latency policies are used only with placement request that provide player latency information. Player latency policies can be stacked to gradually relax latency requirements over time.
Latency policies are part of a GameSessionQueue.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PlayerLatencyPolicy.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PlayerLatencyPolicy.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
maximumIndividualPlayerLatencyMilliseconds()
The maximum latency value that is allowed for any player, in milliseconds.
|
Integer |
policyDurationSeconds()
The length of time, in seconds, that the policy is enforced while placing a new game session.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PlayerLatencyPolicy.Builder> |
serializableBuilderClass() |
PlayerLatencyPolicy.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer maximumIndividualPlayerLatencyMilliseconds()
The maximum latency value that is allowed for any player, in milliseconds. All policies must have a value set for this property.
public final Integer policyDurationSeconds()
The length of time, in seconds, that the policy is enforced while placing a new game session. A null value for this property means that the policy is enforced until the queue times out.
public PlayerLatencyPolicy.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PlayerLatencyPolicy.Builder,PlayerLatencyPolicy>public static PlayerLatencyPolicy.Builder builder()
public static Class<? extends PlayerLatencyPolicy.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.