@Retention(value=RUNTIME) @Inherited @Target(value=METHOD) public @interface Throttled
Mark a request handler is subject to throttle control
Modifier and Type | Optional Element and Description |
---|---|
Throttled.ExpireScale |
expireScale
Enable/disable throttle reset timeout scale.
|
int |
value
The maximum number of requests per second initiated from the same ip address.
|
public abstract int value
The maximum number of requests per second initiated from the same ip address.
Default value:
public abstract Throttled.ExpireScale expireScale
Enable/disable throttle reset timeout scale.
Default value: Throttled.ExpireScale.DEFAULT
Copyright © 2014–2018 ActFramework. All rights reserved.