Class SessionThrottler

    • Constructor Detail

      • SessionThrottler

        public SessionThrottler​(HttpSessionHandler sessionHandler)
        Creates a throttler that allows no connections.
        Parameters:
        sessionHandler - session handler
        Since:
        03.03.00
        See Also:
        HttpSessionHandler
    • Method Detail

      • getMaxConnections

        public int getMaxConnections​(HttpSession session,
                                     HttpExchange exchange)
        Returns the maximum number of connections for a session. A value of -1 means unlimited connections.
        Parameters:
        session - session to process
        exchange - exchange to process
        Returns:
        maximum number of connections allowed
        Since:
        03.05.00