public class RateLimit extends Object implements Serializable
Note: The call limitation is posed by the Flattr API. This is not a limitation of flattr4j.
| Constructor and Description |
|---|
RateLimit() |
RateLimit(FlattrObject data) |
RateLimit(RateLimit limit)
|
| Modifier and Type | Method and Description |
|---|---|
Long |
getCurrent()
The number of calls made in the current time span.
|
Long |
getLimit()
The maximum rate of allowed calls per time span.
|
Long |
getRemaining()
The remaining rate of allowed calls per time span.
|
Date |
getReset()
The moment of the beginning of a new time span.
|
void |
setCurrent(Long current) |
void |
setLimit(Long limit) |
void |
setRemaining(Long remaining) |
void |
setReset(Date reset) |
public RateLimit()
public RateLimit(FlattrObject data)
public Long getLimit()
null if there is no such
information available.public void setLimit(Long limit)
public Long getRemaining()
null if there is no such
information available.public void setRemaining(Long remaining)
public Long getCurrent()
null if there is no such
information available.public void setCurrent(Long current)
public Date getReset()
null if there is no such
information available.public void setReset(Date reset)
Copyright © 2010–2014. All rights reserved.