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 Githubgithub()Github we're in.javax.json.JsonObjectjson()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 IOExceptionDescription copied from interface:JsonReadableDescribe it in a JSON object.- Specified by:
jsonin interfaceJsonReadable- Returns:
- JSON object
- Throws:
IOException- If there is any I/O problem
-
-