public enum ApiRateLimitChecker extends Enum<ApiRateLimitChecker>
Enum Constant and Description |
---|
ThrottleForNormalize
Attempt to evenly distribute GitHub API requests.
|
ThrottleOnOver
Restrict GitHub API requests only when near or above rate limit.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
checkApiRateLimit(TaskListener listener,
org.kohsuke.github.GitHub github) |
String |
getDisplayName() |
static ApiRateLimitChecker |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApiRateLimitChecker[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApiRateLimitChecker ThrottleForNormalize
public static final ApiRateLimitChecker ThrottleOnOver
public static ApiRateLimitChecker[] values()
for (ApiRateLimitChecker c : ApiRateLimitChecker.values()) System.out.println(c);
public static ApiRateLimitChecker valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getDisplayName()
public abstract void checkApiRateLimit(@NonNull TaskListener listener, org.kohsuke.github.GitHub github) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2016–2020. All rights reserved.