@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PlayerLatencyPolicy extends Object implements Serializable, Cloneable, StructuredPojo
Queue setting that determines the highest latency allowed for individual players when placing a game session. When a latency policy is in force, a game session cannot be placed at any destination in a region where a player is reporting latency higher than the cap. Latency policies are only enforced when the placement request contains player latency information.
Queue-related operations include:
Constructor and Description |
---|
PlayerLatencyPolicy() |
Modifier and Type | Method and Description |
---|---|
PlayerLatencyPolicy |
clone() |
boolean |
equals(Object obj) |
Integer |
getMaximumIndividualPlayerLatencyMilliseconds()
The maximum latency value that is allowed for any player, in milliseconds.
|
Integer |
getPolicyDurationSeconds()
The length of time, in seconds, that the policy is enforced while placing a new game session.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMaximumIndividualPlayerLatencyMilliseconds(Integer maximumIndividualPlayerLatencyMilliseconds)
The maximum latency value that is allowed for any player, in milliseconds.
|
void |
setPolicyDurationSeconds(Integer policyDurationSeconds)
The length of time, in seconds, that the policy is enforced while placing a new game session.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
PlayerLatencyPolicy |
withMaximumIndividualPlayerLatencyMilliseconds(Integer maximumIndividualPlayerLatencyMilliseconds)
The maximum latency value that is allowed for any player, in milliseconds.
|
PlayerLatencyPolicy |
withPolicyDurationSeconds(Integer policyDurationSeconds)
The length of time, in seconds, that the policy is enforced while placing a new game session.
|
public void setMaximumIndividualPlayerLatencyMilliseconds(Integer maximumIndividualPlayerLatencyMilliseconds)
The maximum latency value that is allowed for any player, in milliseconds. All policies must have a value set for this property.
maximumIndividualPlayerLatencyMilliseconds
- The maximum latency value that is allowed for any player, in milliseconds. All policies must have a value
set for this property.public Integer getMaximumIndividualPlayerLatencyMilliseconds()
The maximum latency value that is allowed for any player, in milliseconds. All policies must have a value set for this property.
public PlayerLatencyPolicy withMaximumIndividualPlayerLatencyMilliseconds(Integer maximumIndividualPlayerLatencyMilliseconds)
The maximum latency value that is allowed for any player, in milliseconds. All policies must have a value set for this property.
maximumIndividualPlayerLatencyMilliseconds
- The maximum latency value that is allowed for any player, in milliseconds. All policies must have a value
set for this property.public void setPolicyDurationSeconds(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.
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 Integer getPolicyDurationSeconds()
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 withPolicyDurationSeconds(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.
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 String toString()
toString
in class Object
Object.toString()
public PlayerLatencyPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.