public interface RateLimiter
| Modifier and Type | Method and Description |
|---|---|
Rate |
consume(RateLimitProperties.Policy policy,
String key,
Long requestTime) |
Rate consume(RateLimitProperties.Policy policy, String key, Long requestTime)
policy - Template for which rates should be created in case there's no rate limit associated with the
keykey - Unique key that identifies a requestrequestTime - The total time it took to handle the requestCopyright © 2018 Pivotal Software, Inc.. All rights reserved.