[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Interface BackOffPolicy (2.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0 (latest)](/java/docs/reference/google-http-client/latest/com.google.api.client.http.BackOffPolicy)\n- [1.47.1](/java/docs/reference/google-http-client/1.47.1/com.google.api.client.http.BackOffPolicy)\n- [1.46.3](/java/docs/reference/google-http-client/1.46.3/com.google.api.client.http.BackOffPolicy)\n- [1.45.3](/java/docs/reference/google-http-client/1.45.3/com.google.api.client.http.BackOffPolicy)\n- [1.44.2](/java/docs/reference/google-http-client/1.44.2/com.google.api.client.http.BackOffPolicy)\n- [1.43.2](/java/docs/reference/google-http-client/1.43.2/com.google.api.client.http.BackOffPolicy)\n- [1.42.3](/java/docs/reference/google-http-client/1.42.3/com.google.api.client.http.BackOffPolicy)\n- [1.41.8](/java/docs/reference/google-http-client/1.41.8/com.google.api.client.http.BackOffPolicy) \n\n public interface BackOffPolicy\n\n**Deprecated.** *(scheduled to be removed in 1.18) Use [HttpBackOffUnsuccessfulResponseHandler](/java/docs/reference/google-http-client/latest/com.google.api.client.http.HttpBackOffUnsuccessfulResponseHandler)\ninstead.*\n\n[Beta](/java/docs/reference/google-http-client/latest/com.google.api.client.util.Beta) \n\nStrategy interface to control back off between retry attempts.\n\nStatic Fields\n-------------\n\n### STOP (deprecated)\n\n public static final long STOP\n\nValue indicating that no more retries should be made, see [#getNextBackOffMillis()](/java/docs/reference/google-http-client/latest/com.google.api.client.http.BackOffPolicy#com_google_api_client_http_BackOffPolicy_getNextBackOffMillis__).\n\nMethods\n-------\n\n### getNextBackOffMillis() (deprecated)\n\n public abstract long getNextBackOffMillis()\n\nGets the number of milliseconds to wait before retrying an HTTP request. If [#STOP](/java/docs/reference/google-http-client/latest/com.google.api.client.http.BackOffPolicy#com_google_api_client_http_BackOffPolicy_STOP) is\nreturned, no retries should be made.\n\nThis method should be used as follows:\n\nlong backoffTime = backoffPolicy.getNextBackoffMs();\nif (backoffTime == BackoffPolicy.STOP) {\n// Stop retrying.\n} else {\n// Retry after backoffTime.\n}\n\n### isBackOffRequired(int statusCode) (deprecated)\n\n public abstract boolean isBackOffRequired(int statusCode)\n\nDetermines if back off is required based on the specified status code.\n\nImplementations may want to back off on server or product-specific errors.\n\n### reset() (deprecated)\n\n public abstract void reset()\n\nReset Back off counters (if any) in an implementation-specific fashion."]]