[[["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-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eRetryOptions.Builder\u003c/code\u003e provides static methods to create instances of \u003ccode\u003eRetryOptions\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ewithDefaults()\u003c/code\u003e method returns a default set of \u003ccode\u003eRetryOptions\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eMethods like \u003ccode\u003ewithMaxBackoffSeconds\u003c/code\u003e, \u003ccode\u003ewithMaxDoublings\u003c/code\u003e, \u003ccode\u003ewithMinBackoffSeconds\u003c/code\u003e, \u003ccode\u003ewithTaskAgeLimitSeconds\u003c/code\u003e, and \u003ccode\u003ewithTaskRetryLimit\u003c/code\u003e allow customization of \u003ccode\u003eRetryOptions\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEach of the customization methods return the default \u003ccode\u003eRetryOptions\u003c/code\u003e while also calling their corresponding setter in the \u003ccode\u003eRetryOptions\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRetryOptions.Builder\u003c/code\u003e class inherits standard methods from \u003ccode\u003ejava.lang.Object\u003c/code\u003e such as \u003ccode\u003eclone()\u003c/code\u003e, \u003ccode\u003eequals(Object)\u003c/code\u003e, and \u003ccode\u003ehashCode()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Class RetryOptions.Builder (2.0.0)\n\n public static final class RetryOptions.Builder\n\nProvides static creation methods for [RetryOptions](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.taskqueue.RetryOptions). \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e RetryOptions.Builder \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Methods\n--------------\n\n### withDefaults()\n\n public static RetryOptions withDefaults()\n\nReturns default [RetryOptions](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.taskqueue.RetryOptions).\n\n### withMaxBackoffSeconds(double maxBackoffSeconds)\n\n public static RetryOptions withMaxBackoffSeconds(double maxBackoffSeconds)\n\nReturns default [RetryOptions](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.taskqueue.RetryOptions) and calls [RetryOptions#maxBackoffSeconds(double)](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.taskqueue.RetryOptions#com_google_appengine_api_taskqueue_RetryOptions_maxBackoffSeconds_double_).\n\n### withMaxDoublings(int maxDoublings)\n\n public static RetryOptions withMaxDoublings(int maxDoublings)\n\nReturns default [RetryOptions](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.taskqueue.RetryOptions) and calls [RetryOptions#maxDoublings(int)](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.taskqueue.RetryOptions#com_google_appengine_api_taskqueue_RetryOptions_maxDoublings_int_).\n\n### withMinBackoffSeconds(double minBackoffSeconds)\n\n public static RetryOptions withMinBackoffSeconds(double minBackoffSeconds)\n\nReturns default [RetryOptions](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.taskqueue.RetryOptions) and calls [RetryOptions#minBackoffSeconds(double)](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.taskqueue.RetryOptions#com_google_appengine_api_taskqueue_RetryOptions_minBackoffSeconds_double_).\n\n### withTaskAgeLimitSeconds(long taskAgeLimitSeconds)\n\n public static RetryOptions withTaskAgeLimitSeconds(long taskAgeLimitSeconds)\n\nReturns default [RetryOptions](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.taskqueue.RetryOptions) and calls [RetryOptions#taskAgeLimitSeconds(long)](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.taskqueue.RetryOptions#com_google_appengine_api_taskqueue_RetryOptions_taskAgeLimitSeconds_long_).\n\n### withTaskRetryLimit(int taskRetryLimit)\n\n public static RetryOptions withTaskRetryLimit(int taskRetryLimit)\n\nReturns default [RetryOptions](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.taskqueue.RetryOptions) and calls [RetryOptions#taskRetryLimit(int)](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.taskqueue.RetryOptions#com_google_appengine_api_taskqueue_RetryOptions_taskRetryLimit_int_)."]]