public static final class MultiDbConfig.RetryConfig
extends java.lang.Object
This class encapsulates all retry-related settings including maximum attempts, wait duration, exponential backoff, and exception handling. It provides a clean separation of retry concerns from other configuration aspects.
| Modifier and Type | Class and Description |
|---|---|
static class |
MultiDbConfig.RetryConfig.Builder
Builder for
MultiDbConfig.RetryConfig. |
| Modifier and Type | Method and Description |
|---|---|
static MultiDbConfig.RetryConfig.Builder |
builder()
Creates a new Builder instance for configuring RetryConfig.
|
int |
getExponentialBackoffMultiplier()
Returns the exponential backoff multiplier for retry wait duration.
|
java.util.List<java.lang.Class> |
getIgnoreExceptionList()
Returns the list of exception classes that are ignored for retry purposes.
|
java.util.List<java.lang.Class> |
getIncludedExceptionList()
Returns the list of exception classes that trigger retry attempts.
|
int |
getMaxAttempts()
Returns the maximum number of retry attempts including the initial call.
|
java.time.Duration |
getWaitDuration()
Returns the base wait duration between retry attempts.
|
public int getMaxAttempts()
public java.time.Duration getWaitDuration()
public int getExponentialBackoffMultiplier()
public java.util.List<java.lang.Class> getIncludedExceptionList()
public java.util.List<java.lang.Class> getIgnoreExceptionList()
public static MultiDbConfig.RetryConfig.Builder builder()
Copyright © 2025. All rights reserved.