src/main/java/org/michailov/async/Executor.java
static void throttleExecute(Runnable runnable, int retryCount) {
        if (retryCount % THROTTLE_THRESHOLD == 0) {
            long delayMillis = Math.min(retryCount * RETRY_DELAY_MILLIS, MAX_DELAY_MILLIS);
            executeAfter(runnable, delayMillis);
        }
        else {
            execute(runnable);
        }
    }
/**
     * Schedules an operation for delayed or immediate execution based on the retry count.
     * 
     * @param   runnable    The operation to be executed.
     * @param   retryCount  Count of "dummy" retries. 
     */
Schedules an operation for delayed or immediate execution based on the retry count.

@param   runnable    The operation to be executed.
@param   retryCount  Count of "dummy" retries.
Schedules an operation for delayed or immediate execution based on the retry count . @param runnable The operation to be executed . @param retryCount Count of " dummy " retries .
static void throttleExecute(Runnable runnable, int retryCount) {
        if (retryCount % THROTTLE_THRESHOLD == 0) {
            long delayMillis = Math.min(retryCount * RETRY_DELAY_MILLIS, MAX_DELAY_MILLIS);
            executeAfter(runnable, delayMillis);
        }
        else {
            execute(runnable);
        }
    }
static void throttleExecute ( Runnable runnable , int retryCount ) { if ( retryCount % THROTTLE_THRESHOLD == 0 ) { long delayMillis = Math . min ( retryCount * RETRY_DELAY_MILLIS , MAX_DELAY_MILLIS ) ; executeAfter ( runnable , delayMillis ) ; } else { execute ( runnable ) ; } }
Schedules an operation for delayed or immediate execution based on the retry count.
Schedules an operation for delayed or immediate execution based on the retry count .