protected int handleExceptionWithDelay(int currentErrorDelay)
Handles exceptions where a delay is required to prevent a Thread from
entering a tight loop which will consume CPU and may also trigger large
amounts of logging. For example, this can happen if the ulimit for open
files is reached.
currentErrorDelay - The current delay being applied on failure