org.shredzone.flattr4j.connector
Class RateLimit

java.lang.Object
  extended by org.shredzone.flattr4j.connector.RateLimit

public class RateLimit
extends Object

Keeps the maximum rate of allowed calls and the remaining number of calls.

Note: The call limitation is posed by the Flattr API. This is not a limitation of flattr4j.

Author:
Richard "Shred" Körber

Constructor Summary
RateLimit()
           
 
Method Summary
 Long getLimit()
          The maximum rate of allowed calls per time span.
 Long getRemaining()
          The remaining rate of allowed calls per time span.
 void setLimit(Long limit)
           
 void setRemaining(Long remaining)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RateLimit

public RateLimit()
Method Detail

getLimit

public Long getLimit()
The maximum rate of allowed calls per time span. null if there is no such information available.


setLimit

public void setLimit(Long limit)

getRemaining

public Long getRemaining()
The remaining rate of allowed calls per time span. null if there is no such information available.


setRemaining

public void setRemaining(Long remaining)


Copyright © 2010-2012. All Rights Reserved.