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 suppliedMatchmaker
redactOpponentUser
(Match match) Redacts any private information for the opponent user so an opponent may not see the personal details of an opponentUser
.void
setElementRegistry
(ElementRegistry elementRegistry) void
setTopicService
(TopicService topicService)
-
Constructor Details
-
StandardMatchServiceUtils
public StandardMatchServiceUtils()
-
-
Method Details
-
attempt
public Match attempt(Matchmaker matchmaker, Match match, MatchmakingApplicationConfiguration matchmakingApplicationConfiguration) Description copied from interface:MatchServiceUtils
Attempts to create a pairing between two players, using the suppliedMatchmaker
- Specified by:
attempt
in interfaceMatchServiceUtils
- Parameters:
matchmaker
- theMatchmaker
to usematch
- the originating player match.matchmakingApplicationConfiguration
- theMatchmakingApplicationConfiguration
to use when finalizing the match- Returns:
- the
Match
after the attempt has been made to pair it.
-
redactOpponentUser
Description copied from interface:MatchServiceUtils
Redacts any private information for the opponent user so an opponent may not see the personal details of an opponentUser
.- Specified by:
redactOpponentUser
in interfaceMatchServiceUtils
- Parameters:
match
- theMatch
info- Returns:
- the same
Match
with private information redacted
-
getElementRegistry
-
setElementRegistry
-
getTopicService
-
setTopicService
-