Package com.jcabi.github
Class Limit.Smart
java.lang.Object
com.jcabi.github.Limit.Smart
- All Implemented Interfaces:
JsonReadable,Limit
- Enclosing interface:
- Limit
Smart limits with extra features.
- Since:
- 0.6
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jcabi.github.Limit
Limit.Smart, Limit.Throttled -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Smart
Public ctor.- Parameters:
limit- Limit
-
-
Method Details
-
limit
Limit of number of requests.- Returns:
- Number of requests you can make in total
- Throws:
IOException- If it fails
-
remaining
Remaining number of requests.- Returns:
- Number of requests you can still make
- Throws:
IOException- If it fails
-
reset
When will the limit be reset.- Returns:
- Date when this will happen
- Throws:
IOException- If it fails
-
json
Description 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
-
github
Description copied from interface:LimitGitHub we're in.
-