Package com.podio
Class RateLimits
- java.lang.Object
-
- com.podio.RateLimits
-
public class RateLimits extends Object
-
-
Constructor Summary
Constructors Constructor Description RateLimits()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IntegergetLimit()Returns the ceiling for the request you just made.static IntegergetRemaining()Returns the number of requests you have left for the current 1 hour window.static voidsetLimit(Integer limit)static voidsetRemaining(Integer remaining)
-
-
-
Method Detail
-
getLimit
public static Integer getLimit()
Returns the ceiling for the request you just made. May be null if there is no limit.- Returns:
- the ceiling for the request you just made
-
setLimit
public static void setLimit(Integer limit)
-
getRemaining
public static Integer getRemaining()
Returns the number of requests you have left for the current 1 hour window. May be null if there is no limit.- Returns:
- the number of requests you have left for the current 1 hour window
-
setRemaining
public static void setRemaining(Integer remaining)
-
-