Examples of IWVWMatchDTO


Examples of de.justi.yagw2api.arenanet.IWVWMatchDTO

  protected void perform(String matchId) {
    final long startTimestamp = System.currentTimeMillis();
    LOGGER.trace("Going to synchronize matchId=" + matchId);
    final Optional<IWVWMatchDTO> matchDTOOptional = WVW_SERVICE.retrieveMatch(matchId);
    if (matchDTOOptional.isPresent() && matchDTOOptional.get().getDetails().isPresent()) {
      final IWVWMatchDTO matchDTO = matchDTOOptional.get();
      final IWVWMatchDetailsDTO matchDetailsDTO = matchDTO.getDetails().get();
      final IWVWMatch matchModel = this.matchesMappedById.get(matchId);

      // 0. synchronize worlds
      this.synchronizeWorldNames(matchModel, matchDTO);
View Full Code Here

Examples of de.justi.yagw2api.arenanet.IWVWMatchDTO

      return this.matchCache.get(matchId, new Callable<Optional<IWVWMatchDTO>>() {
        @Override
        public Optional<IWVWMatchDTO> call() throws Exception {
          final IWVWMatchDTO[] matches = WVWService.this.retrieveAllMatches().getMatches();
          int index = 0;
          IWVWMatchDTO result = null;
          while ((index < matches.length) && (result == null)) {
            result = matches[index].getId().equals(matchId) ? matches[index] : null;
            index++;
          }
          if (LOGGER.isTraceEnabled()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.