diff options
Diffstat (limited to 'src/main/java/com/android/volley/RetryPolicy.java')
-rw-r--r-- | src/main/java/com/android/volley/RetryPolicy.java | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/main/java/com/android/volley/RetryPolicy.java b/src/main/java/com/android/volley/RetryPolicy.java index f58678d..aa6af43 100644 --- a/src/main/java/com/android/volley/RetryPolicy.java +++ b/src/main/java/com/android/volley/RetryPolicy.java @@ -16,26 +16,21 @@ package com.android.volley; -/** - * Retry policy for a request. - */ +/** Retry policy for a request. */ public interface RetryPolicy { - /** - * Returns the current timeout (used for logging). - */ + /** Returns the current timeout (used for logging). */ int getCurrentTimeout(); - /** - * Returns the current retry count (used for logging). - */ + /** Returns the current retry count (used for logging). */ int getCurrentRetryCount(); /** * Prepares for the next retry by applying a backoff to the timeout. + * * @param 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. + * @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. */ void retry(VolleyError error) throws VolleyError; } |