java.lang.Object
org.kohsuke.github.RateLimitChecker
org.kohsuke.github.RateLimitChecker.LiteralValue
- Enclosing class:
- RateLimitChecker
A
RateLimitChecker 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckRateLimit(GHRateLimit.Record record, long count) Check rate limit.Methods inherited from class org.kohsuke.github.RateLimitChecker
sleepUntilReset
-
Constructor Details
-
LiteralValue
public LiteralValue(int sleepAtOrBelow) Instantiates a new literal value.- Parameters:
sleepAtOrBelow- the sleep at or below
-
-
Method Details
-
checkRateLimit
Check rate limit.- Overrides:
checkRateLimitin classRateLimitChecker- Parameters:
record- the recordcount- the count- Returns:
- true, if successful
- Throws:
InterruptedException- the interrupted exception
-