Class Limit.Throttled

  • All Implemented Interfaces:
    JsonReadable, Limit
    Enclosing interface:
    Limit

    @Immutable
    @Loggable(1)
    public static final class Limit.Throttled
    extends Object
    implements Limit
    Throttled Limit.
    Since:
    0.6
    • Constructor Detail

      • Throttled

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

      • json

        public javax.json.JsonObject json()
                                   throws IOException
        Description copied from interface: JsonReadable
        Describe it in a JSON object.
        Specified by:
        json in interface JsonReadable
        Returns:
        JSON object
        Throws:
        IOException - If there is any I/O problem
      • github

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