Slash
16eb0b8
jvm
Slash
/
tv.blademaker.slash.ratelimit
/
RateLimit
Rate
Limit
@
Target
(
allowedTargets
=
[
AnnotationTarget.FUNCTION
]
)
annotation class
RateLimit
(
val
quota
:
Int
,
val
duration
:
Long
,
val
unit
:
TimeUnit
,
val
target
:
RateLimit.Target
)
Members
Types
Target
Link copied to clipboard
enum
Target
:
Enum
<
RateLimit.Target
>
Properties
duration
Link copied to clipboard
val
duration
:
Long
quota
Link copied to clipboard
val
quota
:
Int
target
Link copied to clipboard
val
target
:
RateLimit.Target
unit
Link copied to clipboard
val
unit
:
TimeUnit