Lineage
Toggle table of contents
0.4.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Lineage
proxy
/
ru.hytalemodding.lineage.proxy.security
/
RateLimitService
Rate
Limit
Service
class
RateLimitService
(
config
:
RateLimitConfig
,
clock
:
Clock
=
SystemClock
)
In-memory fixed-window rate limiting for basic abuse protection.
Members
Constructors
Rate
Limit
Service
Link copied to clipboard
constructor
(
config
:
RateLimitConfig
,
clock
:
Clock
=
SystemClock
)
Properties
connection
Per
Ip
Link copied to clipboard
val
connectionPerIp
:
FixedWindowRateLimiter
<
String
>
handshake
In
Flight
Link copied to clipboard
val
handshakeInFlight
:
InFlightLimiter
handshake
Per
Ip
Link copied to clipboard
val
handshakePerIp
:
FixedWindowRateLimiter
<
String
>
invalid
Packets
Per
Session
Link copied to clipboard
val
invalidPacketsPerSession
:
FixedWindowRateLimiter
<
String
>
routing
In
Flight
Link copied to clipboard
val
routingInFlight
:
InFlightLimiter
streams
Per
Session
Link copied to clipboard
val
streamsPerSession
:
FixedWindowRateLimiter
<
String
>