Package org.comroid.restless.endpoint
Interface RatelimitedEndpoint
-
- All Known Subinterfaces:
AccessibleEndpoint,ServerEndpoint
public interface RatelimitedEndpoint
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetGlobalRatelimit()intgetRatePerSecond()
-
-
-
Method Detail
-
getRatePerSecond
int getRatePerSecond()
- Returns:
- The rate of how often this endpoint can be accessed per second.
Equals
-1, if there is no ratelimit on this endpoint.
-
getGlobalRatelimit
int getGlobalRatelimit()
- Returns:
- The global ratelimit of all endpoints in this pool.
Equals
-1, if there is no global ratelimit.
-
-