Class StandardMatchServiceUtils
java.lang.Object
dev.getelements.elements.service.match.StandardMatchServiceUtils
- All Implemented Interfaces:
MatchServiceUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattempt(Matchmaker matchmaker, Match match, MatchmakingApplicationConfiguration matchmakingApplicationConfiguration) Attempts to create a pairing between two players, using the suppliedMatchmakerredactOpponentUser(Match match) Redacts any private information for the opponent user so an opponent may not see the personal details of an opponentUser.voidsetElementRegistry(ElementRegistry elementRegistry) voidsetTopicService(TopicService topicService)
-
Constructor Details
-
StandardMatchServiceUtils
public StandardMatchServiceUtils()
-
-
Method Details
-
attempt
public Match attempt(Matchmaker matchmaker, Match match, MatchmakingApplicationConfiguration matchmakingApplicationConfiguration) Description copied from interface:MatchServiceUtilsAttempts to create a pairing between two players, using the suppliedMatchmaker- Specified by:
attemptin interfaceMatchServiceUtils- Parameters:
matchmaker- theMatchmakerto usematch- the originating player match.matchmakingApplicationConfiguration- theMatchmakingApplicationConfigurationto use when finalizing the match- Returns:
- the
Matchafter the attempt has been made to pair it.
-
redactOpponentUser
Description copied from interface:MatchServiceUtilsRedacts any private information for the opponent user so an opponent may not see the personal details of an opponentUser.- Specified by:
redactOpponentUserin interfaceMatchServiceUtils- Parameters:
match- theMatchinfo- Returns:
- the same
Matchwith private information redacted
-
getElementRegistry
-
setElementRegistry
-
getTopicService
-
setTopicService
-