|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.degreedays.api.RateLimit.Builder
public static final class RateLimit.Builder
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 |
---|
public RateLimit.Builder()
Method Detail |
---|
public RateLimit.Builder setRequestUnitsAvailable(int requestUnitsAvailable)
public RateLimit.Builder setMinutesToReset(int minutesToReset)
public RateLimit build()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |