Uses of Record Class
com.svenruppert.jsentinel.ratelimiting.RateLimitKey
Packages that use RateLimitKey
-
Uses of RateLimitKey in com.svenruppert.jsentinel.ratelimiting
Methods in com.svenruppert.jsentinel.ratelimiting with parameters of type RateLimitKeyModifier and TypeMethodDescriptionintInMemoryRateLimitStore.countSince(RateLimitKey key, Instant since) intRateLimitStore.countSince(RateLimitKey key, Instant since) Returns the number of events underkeywhose timestamp is at or aftersince.voidInMemoryRateLimitStore.recordEvent(RateLimitKey key, Instant at) voidRateLimitStore.recordEvent(RateLimitKey key, Instant at) Appends one event timestamp underkey.voidInMemoryRateLimitPolicy.reset(RateLimitKey key) Resets the per-key state — typically after a successful authentication that cancels the throttle.voidInMemoryRateLimitStore.reset(RateLimitKey key) voidRateLimitStore.reset(RateLimitKey key) Drops every recorded event underkey.InMemoryRateLimitPolicy.tryAcquire(RateLimitKey key) RateLimitPolicy.tryAcquire(RateLimitKey key) Attempts to record one event underkeyagainst the policy's configured per-window limit.