パッケージ twitter4j.v1
インタフェース RateLimitStatus
- すべてのスーパーインタフェース:
Serializable
A data interface representing Twitter REST API's rate limit status
-
メソッドの概要
修飾子とタイプメソッド説明int
getLimit()
Returns the current limit in effect
This value is identical to the "X-Rate-Limit-Limit" response header.int
Returns the remaining number of API requests available.
This value is identical to the "X-Rate-Limit-Remaining" response header.int
Returns the seconds the current rate limiting period ends.
This should be a same as getResetTime().getTime()/1000.int
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.
-
メソッドの詳細
-
getRemaining
int getRemaining()Returns the remaining number of API requests available.
This value is identical to the "X-Rate-Limit-Remaining" response header.- 戻り値:
- the remaining number of API requests available
- 導入されたバージョン:
- Twitter4J 3.0.0
-
getLimit
int getLimit()Returns the current limit in effect
This value is identical to the "X-Rate-Limit-Limit" response header.- 戻り値:
- the current limit in effect
-
getResetTimeInSeconds
int getResetTimeInSeconds()Returns the seconds the current rate limiting period ends.
This should be a same as getResetTime().getTime()/1000.- 戻り値:
- the seconds the current rate limiting period ends
- 導入されたバージョン:
- Twitter4J 2.0.9
-
getSecondsUntilReset
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.- 戻り値:
- the amount of seconds until next rate limiting period
- 導入されたバージョン:
- Twitter4J 2.1.0
-