package com.ctrip.xpipe.redis.console.alert.policy.timing;

/**
 * @author chen.zhu
 * <p>
 * Apr 19, 2018
 */
public class NaiveRecoveryTimeAlgorithm implements RecoveryTimeAlgorithm {

    @Override
    public long calculate(long checkInterval) {
        return checkInterval * 2;
    }
}

@@ -180,16 +180,66 @@
 ithm %7B%0A%0A
+    private static final long delta = 1000 * 10;%0A%0A
     @Ove
@@ -324,16 +324,24 @@
 rval * 2
+ + delta
 ;%0A    %7D%0A

add delta time to avoid too frequent alert recover and report