HomeGuidesChangelog
GuidesGitHubLog In
Guides

Examples

Examples of resilience4j-ratelimiter

Create a RateLimiterRegistry

Create a RateLimiterRegistry with a custom RateLimiterConfig.

// Create a custom configuration for a Bulkhead
BulkheadConfig config = BulkheadConfig.custom()
  	.maxConcurrentCalls(150)
  	.maxWaitTime(100)
  	.build();

// Create a BulkheadRegistry with a custom global configuration
BulkheadRegistry registry = BulkheadRegistry.of(config);