//SUSPEND CHECKSTYLE CHECK ParameterNumberCheck
public void handleRerun(String clusterName, String entityType, String entityName, String nominalTime,
String runId, String wfId, String workflowUser, long msgReceivedTime) {
try {
Entity entity = getEntity(entityType, entityName);
Retry retry = getRetry(entity);
if (retry == null) {
LOG.warn("Retry not configured for entity:" + entityType + "("
+ entity.getName() + "), ignoring failed retries");
return;
}
int attempts = retry.getAttempts();
Frequency delay = retry.getDelay();
PolicyType policy = retry.getPolicy();
int intRunId = Integer.parseInt(runId);
if (attempts > intRunId) {
AbstractRerunPolicy rerunPolicy = RerunPolicyFactory.getRetryPolicy(policy);
long delayTime = rerunPolicy.getDelay(delay, Integer.parseInt(runId));