public synchronized void increment() {
        if (intervalIndex < timeIntervals.length - 1) {
            intervalIndex++;
        }
    }
Backoff Retry Counter to count when to retry next during reconnection
modules/siddhi-core/src/main/java/io/siddhi/core/util/transport/BackoffRetryCounter.java