@Immutable @Loggable(value=1) public static final class Limit.Smart extends Object implements Limit
Limit.Smart, Limit.Throttled| Modifier and Type | Method and Description |
|---|---|
Github |
github()
Github we're in.
|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
int |
limit()
Limit of number of requests.
|
int |
remaining()
Remaining number of requests.
|
Date |
reset()
When will the limit be reset.
|
public Smart(Limit limit)
limit - Limitpublic int limit()
throws IOException
IOException - If it failspublic int remaining()
throws IOException
IOException - If it failspublic Date reset() throws IOException
IOException - If it failspublic javax.json.JsonObject json()
throws IOException
JsonReadablejson in interface JsonReadableIOException - If there is any I/O problemCopyright © 2012–2018 jcabi.com. All rights reserved.