Here you can find the source of sleepExp(int countFailures)
public final static void sleepExp(int countFailures)
//package com.java2s; public class Main { private static final int msMinSleep = 100; private static final int msMaxSleep = 60000; /**/*from w w w .j a v a2 s. c o m*/ * Implements simple exponential sleep based on number of failures (count). */ public final static void sleepExp(int countFailures) { long ms = (long) (msMinSleep * Math.pow(countFailures, 1.5)); sleepMs(Math.min(ms, msMaxSleep)); } public final static void sleepMs(long ms) { if (ms > 0) { try { Thread.sleep(ms); } catch (InterruptedException e) { // Thread.currentThread().dumpStack(); } } } }