Class Limits.Throttled

  • All Implemented Interfaces:
    Limits
    Enclosing interface:
    Limits

    @Immutable
    @Loggable(1)
    public static final class Limits.Throttled
    extends Object
    implements Limits
    Throttled Limits.
    Since:
    0.6
    • 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