Java Code Examples for io.github.resilience4j.timelimiter.TimeLimiterConfig#ofDefaults()
The following examples show how to use
io.github.resilience4j.timelimiter.TimeLimiterConfig#ofDefaults() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TimeLimiterConfigurationProperties.java From resilience4j with Apache License 2.0 | 6 votes |
public TimeLimiterConfig createTimeLimiterConfig(String backendName, @Nullable InstanceProperties instanceProperties, CompositeCustomizer<TimeLimiterConfigCustomizer> compositeTimeLimiterCustomizer) { if (instanceProperties == null) { return TimeLimiterConfig.ofDefaults(); } if (StringUtils.isNotEmpty(instanceProperties.getBaseConfig())) { InstanceProperties baseProperties = configs.get(instanceProperties.getBaseConfig()); if (baseProperties == null) { throw new ConfigurationNotFoundException(instanceProperties.getBaseConfig()); } return buildConfigFromBaseConfig(baseProperties, instanceProperties, compositeTimeLimiterCustomizer, backendName); } return buildTimeLimiterConfig(TimeLimiterConfig.custom(), instanceProperties, compositeTimeLimiterCustomizer, backendName); }
Example 2
Source File: InMemoryTimeLimiterRegistry.java From resilience4j with Apache License 2.0 | 4 votes |
/** * The constructor with default default. */ public InMemoryTimeLimiterRegistry() { this(TimeLimiterConfig.ofDefaults(), HashMap.empty()); }
Example 3
Source File: InMemoryTimeLimiterRegistry.java From resilience4j with Apache License 2.0 | 4 votes |
public InMemoryTimeLimiterRegistry(io.vavr.collection.Map<String, String> tags) { this(TimeLimiterConfig.ofDefaults(), tags); }
Example 4
Source File: InMemoryTimeLimiterRegistryTest.java From resilience4j with Apache License 2.0 | 4 votes |
@Before public void init() { config = TimeLimiterConfig.ofDefaults(); }