public interface RateLimitStatus
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
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. |
int getRemainingHits()
int getHourlyLimit()
int getResetTimeInSeconds()
int getSecondsUntilReset()
java.util.Date getResetTime()