code: public Map<String, Long> resetRetryCounter() {
          Map<String, Long> result = retryCounter.asMap();
          retryCounter.clear();
          return result;
      }
docs: Reset retry counter.
  
  @return old retry counter.
  @since 0.7.1.1