Interface ThrottlingPolicy

    • Method Detail

      • lookup

        Promise<ThrottlingRate,​Exception> lookup​(Context context,
                                                       Request request)
        Returns the ThrottlingRate that should be used for the provided request.
        Parameters:
        context - The current context which might be used to retrieve the throttling rate.
        request - The current request which might be used to retrieve the throttling rate.
        Returns:
        A Promise representing the ThrottlingRate that should be used for the request.