public interface

RetryPolicy

com.android.volley.RetryPolicy
Known Indirect Subclasses

Class Overview

Retry policy for a request.

Summary

Public Methods
abstract int getCurrentRetryCount()
Returns the current retry count (used for logging).
abstract int getCurrentTimeout()
Returns the current timeout (used for logging).
abstract void retry(VolleyError error)
Prepares for the next retry by applying a backoff to the timeout.

Public Methods

public abstract int getCurrentRetryCount ()

Returns the current retry count (used for logging).

public abstract int getCurrentTimeout ()

Returns the current timeout (used for logging).

public abstract void retry (VolleyError error)

Prepares for the next retry by applying a backoff to the timeout.

Parameters
error The error code of the last attempt.
Throws
VolleyError In the event that the retry could not be performed (for example if we ran out of attempts), the passed in error is thrown.