docs: static long[] parse(String pollers) {
      String[] periods = pollers.split(",\\s*");
      long[] result = new long[periods.length];
  
      boolean errors = false;
      Logger logger = LoggerFactory.getLogger(Pollers.class);
      for (int i = 0; i < periods.length; ++i) {
        String period = periods[i];
        try {
          result[i] = Long.parseLong(period);
          if (result[i] <= 0) {
            logger.error("Invalid polling interval: {} must be positive.", period);
            errors = true;
          }
        } catch (NumberFormatException e) {
          logger.error("Cannot parse '{}' as a long: {}", period, e.getMessage());
          errors = true;
        }
      }
  
      if (errors || periods.length == 0) {
        logger.info("Using a default configuration for poller intervals: {}",
            join(DEFAULT_PERIODS));
        return DEFAULT_PERIODS;
      } else {
        return result;
      }
    }