Class Limits.Throttled

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

    • Throttled

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

    • 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