Back to project page NetworkFacade.
The source code is released under:
Apache License
If you think the Android project NetworkFacade listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.saguinav.networkfacade; //from w ww . j a v a 2s. c om public class RetryPolicy { private final int timeOut; /** The initial timeout for the policy in milliseconds. */ private final int maxNumRetries; /** The maximum number of retries. */ private final float backoffMultiplier; /** Backoff multiplier for the policy. */ public RetryPolicy(int timeOut, int maxNumRetries, float backoffMultiplier) { this.timeOut = timeOut; this.maxNumRetries = maxNumRetries; this.backoffMultiplier = backoffMultiplier; } public int getTimeOut() { return timeOut; } public int getMaxNumRetries() { return maxNumRetries; } public float getBackoffMultiplier() { return backoffMultiplier; } }