Package com.contentful.java.cma.model
Class RateLimits
- java.lang.Object
-
- com.contentful.java.cma.model.RateLimits
-
public class RateLimits extends java.lang.ObjectClass to summarize the rate limits Contentful returns.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRateLimits.DefaultParserDefault parser for rate limits, comming from HTTP Headers.static interfaceRateLimits.ParserInterface for parsing rate limits.
-
Constructor Summary
Constructors Constructor Description RateLimits()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHourLimit()intgetHourRemaining()intgetReset()intgetSecondLimit()intgetSecondRemaining()
-
-
-
Method Detail
-
getHourLimit
public int getHourLimit()
- Returns:
- the number of requests remaining per hour in total.
-
getHourRemaining
public int getHourRemaining()
- Returns:
- the number of requests remaining currently.
-
getReset
public int getReset()
- Returns:
- when does the rate limit counter reset?
-
getSecondLimit
public int getSecondLimit()
- Returns:
- the number of requests remaining per hour in total.
-
getSecondRemaining
public int getSecondRemaining()
- Returns:
- the number of requests remaining currently.
-
-