Class Limit.Throttled

java.lang.Object
com.jcabi.github.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 Details

    • Throttled

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

    • json

      public jakarta.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