game / pragma.matchlifecycle / MatchLifecycleService /
MatchLifecycleService #
internal class MatchLifecycleService(pragmaNode: PragmaNode, instanceId: UUID, routingUtils: RoutingUtils = RoutingUtils.defaultInstance, matchEndMetrics: MatchEndMetrics = MatchEndMetrics(
Metrics(pragmaNode.metricsRegistry),
LoggerFactory.getLogger(MatchEndMetrics::class.java)
), matchEndCommand: MatchEndCommand = MatchEndCommand(), matchesInProcess: MatchesInProcess = MatchesInProcess(), sessionClient: SessionClient = SessionClient()) : DistributedService, ConfigHandler<MatchLifecycleServiceConfig>
MatchLifecycle service is a game loop service responsible for creating matches, sending match connection details to players, and handling any match end processing.
Constructors #
MatchLifecycleService | fun MatchLifecycleService(pragmaNode: PragmaNode, instanceId: UUID, routingUtils: RoutingUtils = RoutingUtils.defaultInstance, matchEndMetrics: MatchEndMetrics = MatchEndMetrics(
Metrics(pragmaNode.metricsRegistry),
LoggerFactory.getLogger(MatchEndMetrics::class.java)
), matchEndCommand: MatchEndCommand = MatchEndCommand(), matchesInProcess: MatchesInProcess = MatchesInProcess(), sessionClient: SessionClient = SessionClient()) |
Functions #
Name | Summary |
---|---|
Create a new match. Invoked in Party-based workflows. | |
Signals a match has failed to start. Invoked by the MatchCapacityService, and works for party flows. | |
Provides the current match details for a player. | |
Signals a match has completed. Invoked by the game server. | |
Invoked by the game server to indicate that a match is still operating normally. | |
Signals a match is ready to join. Invoked by the game server. | |
Attempts to reconnect a player to a match. | |
Processes a match end for a subset of players within a match. Does not end the match. |