@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GameSessionQueue extends Object implements Serializable, Cloneable, StructuredPojo
Configuration of a queue that is used to process game session placement requests. The queue configuration identifies several game features:
The destinations where a new game session can potentially be hosted. Amazon GameLift tries these destinations in an order based on either the queue's default order or player latency information, if provided in a placement request. With latency information, Amazon GameLift can place game sessions where the majority of players are reporting the lowest possible latency.
The length of time that placement requests can wait in the queue before timing out.
A set of optional latency policies that protect individual players from high latencies, preventing game sessions from being placed where any individual player is reporting latency higher than a policy's maximum.
Constructor and Description |
---|
GameSessionQueue() |
Modifier and Type | Method and Description |
---|---|
GameSessionQueue |
clone() |
boolean |
equals(Object obj) |
List<GameSessionQueueDestination> |
getDestinations()
A list of fleets that can be used to fulfill game session placement requests in the queue.
|
String |
getGameSessionQueueArn()
Amazon Resource Name (ARN) that is assigned to a
GameLift game session queue resource and uniquely identifies it.
|
String |
getName()
A descriptive label that is associated with game session queue.
|
List<PlayerLatencyPolicy> |
getPlayerLatencyPolicies()
A collection of latency policies to apply when processing game sessions placement requests with player latency
information.
|
Integer |
getTimeoutInSeconds()
The maximum time, in seconds, that a new game session placement request remains in the queue.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDestinations(Collection<GameSessionQueueDestination> destinations)
A list of fleets that can be used to fulfill game session placement requests in the queue.
|
void |
setGameSessionQueueArn(String gameSessionQueueArn)
Amazon Resource Name (ARN) that is assigned to a
GameLift game session queue resource and uniquely identifies it.
|
void |
setName(String name)
A descriptive label that is associated with game session queue.
|
void |
setPlayerLatencyPolicies(Collection<PlayerLatencyPolicy> playerLatencyPolicies)
A collection of latency policies to apply when processing game sessions placement requests with player latency
information.
|
void |
setTimeoutInSeconds(Integer timeoutInSeconds)
The maximum time, in seconds, that a new game session placement request remains in the queue.
|
String |
toString()
Returns a string representation of this object.
|
GameSessionQueue |
withDestinations(Collection<GameSessionQueueDestination> destinations)
A list of fleets that can be used to fulfill game session placement requests in the queue.
|
GameSessionQueue |
withDestinations(GameSessionQueueDestination... destinations)
A list of fleets that can be used to fulfill game session placement requests in the queue.
|
GameSessionQueue |
withGameSessionQueueArn(String gameSessionQueueArn)
Amazon Resource Name (ARN) that is assigned to a
GameLift game session queue resource and uniquely identifies it.
|
GameSessionQueue |
withName(String name)
A descriptive label that is associated with game session queue.
|
GameSessionQueue |
withPlayerLatencyPolicies(Collection<PlayerLatencyPolicy> playerLatencyPolicies)
A collection of latency policies to apply when processing game sessions placement requests with player latency
information.
|
GameSessionQueue |
withPlayerLatencyPolicies(PlayerLatencyPolicy... playerLatencyPolicies)
A collection of latency policies to apply when processing game sessions placement requests with player latency
information.
|
GameSessionQueue |
withTimeoutInSeconds(Integer timeoutInSeconds)
The maximum time, in seconds, that a new game session placement request remains in the queue.
|
public void setName(String name)
A descriptive label that is associated with game session queue. Queue names must be unique within each Region.
name
- A descriptive label that is associated with game session queue. Queue names must be unique within each
Region.public String getName()
A descriptive label that is associated with game session queue. Queue names must be unique within each Region.
public GameSessionQueue withName(String name)
A descriptive label that is associated with game session queue. Queue names must be unique within each Region.
name
- A descriptive label that is associated with game session queue. Queue names must be unique within each
Region.public void setGameSessionQueueArn(String gameSessionQueueArn)
Amazon Resource Name (ARN) that is assigned to a GameLift game session queue resource and uniquely identifies it. ARNs are unique across all Regions. In a GameLift game session queue ARN, the resource ID matches the Name value.
gameSessionQueueArn
- Amazon Resource Name (ARN) that is
assigned to a GameLift game session queue resource and uniquely identifies it. ARNs are unique across all
Regions. In a GameLift game session queue ARN, the resource ID matches the Name value.public String getGameSessionQueueArn()
Amazon Resource Name (ARN) that is assigned to a GameLift game session queue resource and uniquely identifies it. ARNs are unique across all Regions. In a GameLift game session queue ARN, the resource ID matches the Name value.
public GameSessionQueue withGameSessionQueueArn(String gameSessionQueueArn)
Amazon Resource Name (ARN) that is assigned to a GameLift game session queue resource and uniquely identifies it. ARNs are unique across all Regions. In a GameLift game session queue ARN, the resource ID matches the Name value.
gameSessionQueueArn
- Amazon Resource Name (ARN) that is
assigned to a GameLift game session queue resource and uniquely identifies it. ARNs are unique across all
Regions. In a GameLift game session queue ARN, the resource ID matches the Name value.public void setTimeoutInSeconds(Integer timeoutInSeconds)
The maximum time, in seconds, that a new game session placement request remains in the queue. When a request
exceeds this time, the game session placement changes to a TIMED_OUT
status.
timeoutInSeconds
- The maximum time, in seconds, that a new game session placement request remains in the queue. When a
request exceeds this time, the game session placement changes to a TIMED_OUT
status.public Integer getTimeoutInSeconds()
The maximum time, in seconds, that a new game session placement request remains in the queue. When a request
exceeds this time, the game session placement changes to a TIMED_OUT
status.
TIMED_OUT
status.public GameSessionQueue withTimeoutInSeconds(Integer timeoutInSeconds)
The maximum time, in seconds, that a new game session placement request remains in the queue. When a request
exceeds this time, the game session placement changes to a TIMED_OUT
status.
timeoutInSeconds
- The maximum time, in seconds, that a new game session placement request remains in the queue. When a
request exceeds this time, the game session placement changes to a TIMED_OUT
status.public List<PlayerLatencyPolicy> getPlayerLatencyPolicies()
A collection of latency policies to apply when processing game sessions placement requests with player latency information. Multiple policies are evaluated in order of the maximum latency value, starting with the lowest latency values. With just one policy, the policy is enforced at the start of the game session placement for the duration period. With multiple policies, each policy is enforced consecutively for its duration period. For example, a queue might enforce a 60-second policy followed by a 120-second policy, and then no policy for the remainder of the placement.
public void setPlayerLatencyPolicies(Collection<PlayerLatencyPolicy> playerLatencyPolicies)
A collection of latency policies to apply when processing game sessions placement requests with player latency information. Multiple policies are evaluated in order of the maximum latency value, starting with the lowest latency values. With just one policy, the policy is enforced at the start of the game session placement for the duration period. With multiple policies, each policy is enforced consecutively for its duration period. For example, a queue might enforce a 60-second policy followed by a 120-second policy, and then no policy for the remainder of the placement.
playerLatencyPolicies
- A collection of latency policies to apply when processing game sessions placement requests with player
latency information. Multiple policies are evaluated in order of the maximum latency value, starting with
the lowest latency values. With just one policy, the policy is enforced at the start of the game session
placement for the duration period. With multiple policies, each policy is enforced consecutively for its
duration period. For example, a queue might enforce a 60-second policy followed by a 120-second policy,
and then no policy for the remainder of the placement.public GameSessionQueue withPlayerLatencyPolicies(PlayerLatencyPolicy... playerLatencyPolicies)
A collection of latency policies to apply when processing game sessions placement requests with player latency information. Multiple policies are evaluated in order of the maximum latency value, starting with the lowest latency values. With just one policy, the policy is enforced at the start of the game session placement for the duration period. With multiple policies, each policy is enforced consecutively for its duration period. For example, a queue might enforce a 60-second policy followed by a 120-second policy, and then no policy for the remainder of the placement.
NOTE: This method appends the values to the existing list (if any). Use
setPlayerLatencyPolicies(java.util.Collection)
or
withPlayerLatencyPolicies(java.util.Collection)
if you want to override the existing values.
playerLatencyPolicies
- A collection of latency policies to apply when processing game sessions placement requests with player
latency information. Multiple policies are evaluated in order of the maximum latency value, starting with
the lowest latency values. With just one policy, the policy is enforced at the start of the game session
placement for the duration period. With multiple policies, each policy is enforced consecutively for its
duration period. For example, a queue might enforce a 60-second policy followed by a 120-second policy,
and then no policy for the remainder of the placement.public GameSessionQueue withPlayerLatencyPolicies(Collection<PlayerLatencyPolicy> playerLatencyPolicies)
A collection of latency policies to apply when processing game sessions placement requests with player latency information. Multiple policies are evaluated in order of the maximum latency value, starting with the lowest latency values. With just one policy, the policy is enforced at the start of the game session placement for the duration period. With multiple policies, each policy is enforced consecutively for its duration period. For example, a queue might enforce a 60-second policy followed by a 120-second policy, and then no policy for the remainder of the placement.
playerLatencyPolicies
- A collection of latency policies to apply when processing game sessions placement requests with player
latency information. Multiple policies are evaluated in order of the maximum latency value, starting with
the lowest latency values. With just one policy, the policy is enforced at the start of the game session
placement for the duration period. With multiple policies, each policy is enforced consecutively for its
duration period. For example, a queue might enforce a 60-second policy followed by a 120-second policy,
and then no policy for the remainder of the placement.public List<GameSessionQueueDestination> getDestinations()
A list of fleets that can be used to fulfill game session placement requests in the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference order.
public void setDestinations(Collection<GameSessionQueueDestination> destinations)
A list of fleets that can be used to fulfill game session placement requests in the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference order.
destinations
- A list of fleets that can be used to fulfill game session placement requests in the queue. Fleets are
identified by either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference
order.public GameSessionQueue withDestinations(GameSessionQueueDestination... destinations)
A list of fleets that can be used to fulfill game session placement requests in the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference order.
NOTE: This method appends the values to the existing list (if any). Use
setDestinations(java.util.Collection)
or withDestinations(java.util.Collection)
if you want to
override the existing values.
destinations
- A list of fleets that can be used to fulfill game session placement requests in the queue. Fleets are
identified by either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference
order.public GameSessionQueue withDestinations(Collection<GameSessionQueueDestination> destinations)
A list of fleets that can be used to fulfill game session placement requests in the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference order.
destinations
- A list of fleets that can be used to fulfill game session placement requests in the queue. Fleets are
identified by either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference
order.public String toString()
toString
in class Object
Object.toString()
public GameSessionQueue clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.