Class Limits.Throttled

    • Constructor Detail

      • Throttled

        public Throttled​(Limits limits,
                         int allowed)
        Public ctor.
        Parameters:
        limits - Original limits
        allowed - Maximum allowed
    • Method Detail

      • github

        public Github github()
        Description copied from interface: Limits
        Github we're in.
        Specified by:
        github in interface Limits
        Returns:
        Github
      • get

        public Limit get​(String resource)
        Description copied from interface: Limits
        Get limit for the given resource.
        Specified by:
        get in interface Limits
        Parameters:
        resource - Name of resource
        Returns:
        Limit