java.lang.Object
org.nasdanika.models.gitlab.util.GitLabApiProvider
- All Implemented Interfaces:
AutoCloseable
This class takes care of different ways to create
GitLabApi and request throttling-
Constructor Summary
ConstructorsConstructorDescriptionGitLabApiProvider(String hostUrl, String accessToken) GitLabApiProvider(String hostUrl, String accessToken, long clientRateLimitWindow, int clientRateLimit) GitLabApiProvider(org.gitlab4j.api.GitLabApi gitLabApi) GitLabApiProvider(org.gitlab4j.api.GitLabApi gitLabApi, long clientRateLimitWindow, int clientRateLimit) GitLabApiProvider(org.gitlab4j.api.GitLabApi gitLabApi, Handler throttlingHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.gitlab4j.api.GitLabApiAccess to the API for configuration.
-
Constructor Details
-
GitLabApiProvider
-
GitLabApiProvider
-
GitLabApiProvider
public GitLabApiProvider(String hostUrl, String accessToken, long clientRateLimitWindow, int clientRateLimit) - Parameters:
clientRateLimitWindow- Client rate window in milliseconds. Client rate limit is enforced if this value and clientRateLimit are positive.clientRateLimit- Client rate limit per rate window. Client rate limit is enforced if this value and clientRateLimitWindow are positive.
-
GitLabApiProvider
public GitLabApiProvider(org.gitlab4j.api.GitLabApi gitLabApi, long clientRateLimitWindow, int clientRateLimit) - Parameters:
clientRateLimitWindow- Client rate window in milliseconds. Client rate limit is enforced if this value and clientRateLimit are positive.clientRateLimit- Client rate limit per rate window. Client rate limit is enforced if this value and clientRateLimitWindow are positive.
-
GitLabApiProvider
-
-
Method Details
-
getGitLabApi
Access to the API for configuration.- Returns:
-
close
- Specified by:
closein interfaceAutoCloseable
-