All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zipwhip.api.signals.reconnect.ExponentialBackoffReconnectStrategy Maven / Gradle / Ivy

The newest version!
package com.zipwhip.api.signals.reconnect;

import com.zipwhip.reliable.retry.ExponentialBackoffRetryStrategy;
import com.zipwhip.timers.Timer;

/**
 * Created with IntelliJ IDEA.
 * User: Michael
 * Date: 9/11/12
 * Time: 4:36 PM
 *
 *
 */
public class ExponentialBackoffReconnectStrategy extends DefaultReconnectStrategy {

    public ExponentialBackoffReconnectStrategy() {
        this(null);
    }

    public ExponentialBackoffReconnectStrategy(Timer timer) {
        super(timer, new ExponentialBackoffRetryStrategy(1000, 2.0));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy