public class ResilienceConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ResilienceConfiguration.BulkheadConfiguration
Provides options specific to bulkheads.
|
static class |
ResilienceConfiguration.CacheConfiguration
Provides options specific to caching.
|
static class |
ResilienceConfiguration.CircuitBreakerConfiguration
Provides options specific to circuit breakers.
|
static class |
ResilienceConfiguration.RetryConfiguration
Provides options specific to retries, which will reattempt failed requests a limited amount of times.
|
static class |
ResilienceConfiguration.TimeLimiterConfiguration
Provides options specific to timeouts.
|
Modifier | Constructor and Description |
---|---|
protected |
ResilienceConfiguration(String identifier)
Constructor for resilience configuration.
|
@Nonnull public static ResilienceConfiguration of(@Nonnull String identifier)
Timeouts | Enabled |
Circuit Breaker | Enabled |
Bulkhead | Enabled |
Caching | Disabled |
Retries | Disabled |
identifier
- A unique identifier for this configuration.@Nonnull public static ResilienceConfiguration of(@Nonnull Class<?> serviceClass)
Timeouts | Enabled |
Circuit Breaker | Enabled |
Bulkhead | Enabled |
Caching | Disabled |
Retries | Disabled |
serviceClass
- The invoking caller class.@Nonnull public static ResilienceConfiguration empty(@Nonnull String identifier)
identifier
- A unique identifier for this configuration.@Nonnull public static ResilienceConfiguration empty(@Nonnull Class<?> serviceClass)
serviceClass
- The invoking caller class.@Nonnull public ResilienceIsolationMode isolationMode()
@Nonnull public ResilienceConfiguration.TimeLimiterConfiguration timeLimiterConfiguration()
@Nonnull public ResilienceConfiguration.CircuitBreakerConfiguration circuitBreakerConfiguration()
@Nonnull public ResilienceConfiguration.BulkheadConfiguration bulkheadConfiguration()
@Nonnull public ResilienceConfiguration.CacheConfiguration cacheConfiguration()
@Nonnull public ResilienceConfiguration.RetryConfiguration retryConfiguration()
@Nonnull public ResilienceConfiguration isolationMode(@Nonnull ResilienceIsolationMode isolationMode)
@Nonnull public ResilienceConfiguration timeLimiterConfiguration(@Nonnull ResilienceConfiguration.TimeLimiterConfiguration timeLimiterConfiguration)
@Nonnull public ResilienceConfiguration circuitBreakerConfiguration(@Nonnull ResilienceConfiguration.CircuitBreakerConfiguration circuitBreakerConfiguration)
@Nonnull public ResilienceConfiguration bulkheadConfiguration(@Nonnull ResilienceConfiguration.BulkheadConfiguration bulkheadConfiguration)
@Nonnull public ResilienceConfiguration cacheConfiguration(@Nonnull ResilienceConfiguration.CacheConfiguration cacheConfiguration)
@Nonnull public ResilienceConfiguration retryConfiguration(@Nonnull ResilienceConfiguration.RetryConfiguration retryConfiguration)
Copyright © 2020 SAP SE. All rights reserved.