createRateLimitedException

Creates a RateLimiterRejectedException with the appropriate retry duration.

Parameters

permits

The number of permits requested.