log.error(String.format("%s %s: Retries exhausted. Failing.", name, task));
failQueue.put(task);
}
else {
log.warn(String.format("%s %s: recording failure & requeuing...", name, task));
inQueue.put(task.fail(e.getMessage()));
}
continue;
}
catch (final Exception e) {
log.error(String.format("%s %s: Exception while handling.", name, task));