Package com.jcabi.github
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jcabi.github.Limit
Limit.Smart, Limit.Throttled
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Github
github()
Github we're in.javax.json.JsonObject
json()
Describe it in a JSON object.
-
-
-
Constructor Detail
-
Throttled
public Throttled(Limit limit, int allowed)
Public ctor.- Parameters:
limit
- Original limitallowed
- 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 interfaceJsonReadable
- Returns:
- JSON object
- Throws:
IOException
- If there is any I/O problem
-
-