Package io.getstream.services.framework
Class RetryConfig
java.lang.Object
io.getstream.services.framework.RetryConfig
Opt-in auto-retry policy. Disabled by default: the client performs exactly one attempt and
surfaces errors unchanged. When enabled, only GET/HEAD requests failing with HTTP 429 or a
transport error are retried, and never when the backend marked the error unrecoverable.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT_MAX_ATTEMPTS
public static final int DEFAULT_MAX_ATTEMPTS- See Also:
-
DEFAULT_MAX_BACKOFF
-
-
Constructor Details
-
RetryConfig
public RetryConfig()
-
-
Method Details
-
setEnabled
-
setMaxAttempts
-
setMaxBackoff
-
isEnabled
public boolean isEnabled() -
getMaxAttempts
public int getMaxAttempts() -
getMaxBackoff
-