Examples of EnumQueryResult


Examples of org.wikipediacleaner.api.constants.EnumQueryResult

  /**
   * @return Should we retry the call ?
   */
  public boolean shouldRetry() {
    EnumQueryResult result = getQueryResult();
    return (result != null) ? result.shouldRetry() : false;
  }
View Full Code Here

Examples of org.wikipediacleaner.api.constants.EnumQueryResult

  /**
   * @return Maximum number of retry attempts.
   */
  public int getMaxRetry() {
    EnumQueryResult result = getQueryResult();
    return (result != null) ? result.getMaxRetry() : 0;
  }
View Full Code Here

Examples of org.wikipediacleaner.api.constants.EnumQueryResult

  /**
   * Wait for retry.
   */
  public void waitForRetry() {
    EnumQueryResult result = getQueryResult();
    if (result != null) {
      final Log log = LogFactory.getLog(MediaWikiAPI.class);
      if (log != null) {
        log.warn("Waiting after error '" + code + "'");
      }
      result.waitForRetry();
    }
  }
View Full Code Here

Examples of org.wikipediacleaner.api.constants.EnumQueryResult

        pageId, pageTitle, pageOldRevId, pageNewRevId);
  }

  static public QueryResult createErrorQuery(
      String errorText, String details, String wait) {
    EnumQueryResult queryResult = EnumQueryResult.getEnumByCode(errorText);
    return new QueryResult(queryResult, details, wait, null, null, null, null);
  }
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.