Package org.kohsuke.github
Class RateLimitChecker.LiteralValue
- java.lang.Object
-
- org.kohsuke.github.RateLimitChecker
-
- org.kohsuke.github.RateLimitChecker.LiteralValue
-
- Enclosing class:
- RateLimitChecker
public static class RateLimitChecker.LiteralValue extends RateLimitChecker
ARateLimitChecker
with a simple number as the limit.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.kohsuke.github.RateLimitChecker
RateLimitChecker.LiteralValue
-
-
Field Summary
-
Fields inherited from class org.kohsuke.github.RateLimitChecker
NONE
-
-
Constructor Summary
Constructors Constructor Description LiteralValue(int sleepAtOrBelow)
Instantiates a new literal value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkRateLimit(GHRateLimit.Record record, long count)
Check rate limit.-
Methods inherited from class org.kohsuke.github.RateLimitChecker
sleepUntilReset
-
-
-
-
Method Detail
-
checkRateLimit
protected boolean checkRateLimit(GHRateLimit.Record record, long count) throws InterruptedException
Check rate limit.- Overrides:
checkRateLimit
in classRateLimitChecker
- Parameters:
record
- the recordcount
- the count- Returns:
- true, if successful
- Throws:
InterruptedException
- the interrupted exception
-
-