Package com.google.adk.workflow
Class RetryConfig.Builder
java.lang.Object
com.google.adk.workflow.RetryConfig.Builder
- Enclosing class:
- RetryConfig
Builder for
RetryConfig.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract RetryConfig.BuilderbackoffFactor(double backoffFactor) final RetryConfigbuild()exceptionClasses(@Nullable List<? extends Class<? extends Exception>> exceptionClasses) SetsRetryConfig.exceptionClasses(), the types of failures to retry on, or unsets it if null.final RetryConfig.BuilderexceptionClasses(Class<? extends Exception> exceptionClass, Class<? extends Exception>... moreExceptionClasses) SetsRetryConfig.exceptionClasses()from the given types, likeexceptionClasses(List).exceptions(@Nullable List<String> exceptions) SetsRetryConfig.exceptions(), the type names of failures to retry on, or unsets it if null.exceptions(String exception, String... moreExceptions) SetsRetryConfig.exceptions()from the given names, likeexceptions(List).abstract RetryConfig.BuilderinitialDelay(Duration initialDelay) abstract RetryConfig.Builderjitter(double jitter) abstract RetryConfig.BuildermaxAttempts(int maxAttempts) abstract RetryConfig.Builder
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxAttempts
-
initialDelay
-
maxDelay
-
backoffFactor
-
jitter
-
exceptions
SetsRetryConfig.exceptions(), the type names of failures to retry on, or unsets it if null. LeavesRetryConfig.exceptionClasses()unchanged. -
exceptions
@CanIgnoreReturnValue public RetryConfig.Builder exceptions(String exception, String... moreExceptions) SetsRetryConfig.exceptions()from the given names, likeexceptions(List). -
exceptionClasses
@CanIgnoreReturnValue public RetryConfig.Builder exceptionClasses(@Nullable List<? extends Class<? extends Exception>> exceptionClasses) SetsRetryConfig.exceptionClasses(), the types of failures to retry on, or unsets it if null. LeavesRetryConfig.exceptions()unchanged. -
exceptionClasses
@CanIgnoreReturnValue @SafeVarargs public final RetryConfig.Builder exceptionClasses(Class<? extends Exception> exceptionClass, Class<? extends Exception>... moreExceptionClasses) SetsRetryConfig.exceptionClasses()from the given types, likeexceptionClasses(List). -
build
-