Class ThrottledHandler

java.lang.Object
dev.katsute.simplehttpserver.handler.throttler.ThrottledHandler
All Implemented Interfaces:
com.sun.net.httpserver.HttpHandler, SimpleHttpHandler

public class ThrottledHandler extends Object implements SimpleHttpHandler
The throttled handler limits how many simultaneous connections are allowed at any given time. Throttlers are used to determine how inbound connections are handled.
Since:
5.0.0
Version:
5.0.0
Author:
Katsute
See Also:
  • Constructor Details

    • ThrottledHandler

      public ThrottledHandler(dev.katsute.simplehttpserver.handler.throttler.ConnectionThrottler throttler, com.sun.net.httpserver.HttpHandler handler)
      Creates a throttled handler.
      Parameters:
      throttler - connection throttler
      handler - handler
      Since:
      5.0.0
      See Also:
      • ConnectionThrottler
  • Method Details