private boolean isUploadAllowed() { if (timeouts.size() >= strategy.getMaxParallelUploads()) { LOG.debug("Ignore log upload: too much pending requests {}, max allowed {}", timeouts.size(), strategy.getMaxParallelUploads()); return false; } return true; }