Enum PriorityType
- All Implemented Interfaces:
Serializable
,Comparable<PriorityType>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-11T18:01:25.568Z")
@Stability(Experimental)
public enum PriorityType
extends Enum<PriorityType>
(experimental) Priority to condider when placing new game sessions.
Example:
BuildFleet fleet; Topic topic; GameSessionQueue.Builder.create(this, "MyGameSessionQueue") .gameSessionQueueName("test-gameSessionQueue") .customEventData("test-event-data") .allowedLocations(List.of("eu-west-1", "eu-west-2")) .destinations(List.of(fleet)) .notificationTarget(topic) .playerLatencyPolicies(List.of(PlayerLatencyPolicy.builder() .maximumIndividualPlayerLatency(Duration.millis(100)) .policyDuration(Duration.seconds(300)) .build())) .priorityConfiguration(PriorityConfiguration.builder() .locationOrder(List.of("eu-west-1", "eu-west-2")) .priorityOrder(List.of(PriorityType.LATENCY, PriorityType.COST, PriorityType.DESTINATION, PriorityType.LOCATION)) .build()) .timeout(Duration.seconds(300)) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription(experimental) FleetIQ prioritizes destinations with the lowest current hosting costs.(experimental) FleetIQ prioritizes based on the order that destinations are listed in the queue configuration.(experimental) FleetIQ prioritizes locations where the average player latency (provided in each game session request) is lowest.(experimental) FleetIQ prioritizes based on the provided order of locations, as defined inLocationOrder
. -
Method Summary
Modifier and TypeMethodDescriptionstatic PriorityType
Returns the enum constant of this type with the specified name.static PriorityType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LATENCY
(experimental) FleetIQ prioritizes locations where the average player latency (provided in each game session request) is lowest. -
COST
(experimental) FleetIQ prioritizes destinations with the lowest current hosting costs.Cost is evaluated based on the location, instance type, and fleet type (Spot or On-Demand) for each destination in the queue.
-
DESTINATION
(experimental) FleetIQ prioritizes based on the order that destinations are listed in the queue configuration. -
LOCATION
(experimental) FleetIQ prioritizes based on the provided order of locations, as defined inLocationOrder
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-