Class MatchResource
java.lang.Object
dev.getelements.elements.rest.matchmaking.MatchResource
Manages match resources
Created by patricktwohig on 7/18/17.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateMatch
(Match match) void
deleteMatch
(String matchId) int
void
getMatches
(int offset, int count, String search) void
setAsyncTimeoutLimit
(int asyncTimeoutLimit) void
setAsyncTimeoutLimitAsString
(String asyncTimeoutLimit) void
setMatchService
(MatchService matchService) void
setValidationHelper
(ValidationHelper validationHelper)
-
Constructor Details
-
MatchResource
public MatchResource()
-
-
Method Details
-
getMatches
@GET @Produces("application/json") public Pagination<Match> getMatches(@QueryParam("offset") @DefaultValue("0") int offset, @QueryParam("count") @DefaultValue("20") int count, @QueryParam("search") String search) -
getMatch
-
createMatch
-
deleteMatch
@DELETE @Path("{matchId}") @Produces("application/json") public void deleteMatch(@PathParam("matchId") String matchId) -
getAsyncTimeoutLimit
public int getAsyncTimeoutLimit() -
setAsyncTimeoutLimit
public void setAsyncTimeoutLimit(int asyncTimeoutLimit) -
setAsyncTimeoutLimitAsString
@Inject public void setAsyncTimeoutLimitAsString(@Named("dev.getelements.elements.async.timeout.limit") String asyncTimeoutLimit) -
getMatchService
-
setMatchService
-
getValidationHelper
-
setValidationHelper
-