Module SimpleHttpServer
Class ExchangeThrottler
java.lang.Object
dev.katsute.simplehttpserver.handler.throttler.ExchangeThrottler
A throttler that limits the amount of simultaneous connections based on the exchange.
- Since:
- 5.0.0
- Version:
- 5.0.0
- Author:
- Katsute
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getMaxConnections
(SimpleHttpExchange exchange) Returns the maximum number of connections allowed for an exchange.toString()
-
Constructor Details
-
ExchangeThrottler
public ExchangeThrottler()Creates a throttler.- Since:
- 5.0.0
-
-
Method Details