|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RateLimitStatus
A data interface representing Twitter REST API's rate limit status
Method Summary | |
---|---|
int |
getHourlyLimit()
Returns the current limit in effect This value is identical to the "X-RateLimit-Limit" response header. |
int |
getRemainingHits()
Returns the remaining number of API requests available. This value is identical to the "X-RateLimit-Remaining" response header. |
java.util.Date |
getResetTime()
Returns the time the current rate limiting period ends. This value is a java.util.Date-typed variation of the "X-RateLimit-Reset" response header. |
int |
getResetTimeInSeconds()
Returns the seconds the current rate limiting period ends. This should be a same as getResetTime().getTime()/1000. |
int |
getSecondsUntilReset()
Returns the amount of seconds until the current rate limiting period ends. This is a value provided/calculated only by Twitter4J for handiness and not a part of the twitter API spec. |
Method Detail |
---|
int getRemainingHits()
int getHourlyLimit()
int getResetTimeInSeconds()
int getSecondsUntilReset()
java.util.Date getResetTime()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |