net.degreedays.api
Class RateLimit.Builder

java.lang.Object
  extended by net.degreedays.api.RateLimit.Builder
Enclosing class:
RateLimit

public static final class RateLimit.Builder
extends java.lang.Object

A builder class for creating immutable RateLimit objects e.g. for testing purposes.

Instances of this builder class are designed for single-threaded use only. It's fine to create and use instances in multiple concurrent threads, but, in the absence of external synchronization, the use of each individual builder instance should be restricted to one thread only.


Constructor Summary
RateLimit.Builder()
           
 
Method Summary
 RateLimit build()
           
 RateLimit.Builder setMinutesToReset(int minutesToReset)
           
 RateLimit.Builder setRequestUnitsAvailable(int requestUnitsAvailable)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RateLimit.Builder

public RateLimit.Builder()
Method Detail

setRequestUnitsAvailable

public RateLimit.Builder setRequestUnitsAvailable(int requestUnitsAvailable)

setMinutesToReset

public RateLimit.Builder setMinutesToReset(int minutesToReset)

build

public RateLimit build()


www.degreedays.net/api/