Android Open Source - NetworkFacade Retry Policy






From Project

Back to project page NetworkFacade.

License

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.

Java Source Code

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;
    }

}




Java Source Code List

com.android.volley.toolbox.AuthenticationChallengesProofHurlStack.java
com.saguinav.networkfacade.ApplicationTest.java
com.saguinav.networkfacade.HttpBody.java
com.saguinav.networkfacade.HttpClient.java
com.saguinav.networkfacade.HttpError.java
com.saguinav.networkfacade.HttpRequest.java
com.saguinav.networkfacade.RetryPolicy.java
com.saguinav.networkfacade.sample.HeadlessFragment.java
com.saguinav.networkfacade.sample.HttpClientSingleton.java
com.saguinav.networkfacade.sample.MainActivity.java
com.saguinav.networkfacade.sample.OkHttpApplication.java
com.saguinav.networkfacade.sample.OkHttpClient.java
com.saguinav.networkfacade.sample.RepositoriesDeserializer.java
com.saguinav.networkfacade.sample.Repository.java
com.saguinav.networkfacade.sample.SimpleURLBuilder.java
com.saguinav.networkfacade.sample.VolleyApplication.java
com.saguinav.networkfacade.sample.VolleyHttpClient.java