Skip to content

Fix checkstyle issues related to line length #2038

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ protected StsCredentialsProvider(BaseBuilder<?, ?> builder, String asyncThreadNa
}

/**
* Update the expiring session credentials by calling STS. Invoked by {@link CachedSupplier} when the credentials are close to
* expiring.
* Update the expiring session credentials by calling STS. Invoked by {@link CachedSupplier} when the credentials
* are close to expiring.
*/
private RefreshResult<SessionCredentialsHolder> updateSessionCredentials() {
SessionCredentialsHolder credentials = new SessionCredentialsHolder(getUpdatedCredentials(stsClient));
Expand All @@ -97,15 +97,16 @@ public void close() {
}

/**
* The amount of time, relative to STS token expiration, that the cached credentials are considered stale and should no longer be used.
* All threads will block until the value is updated.
* The amount of time, relative to STS token expiration, that the cached credentials are considered stale and
* should no longer be used. All threads will block until the value is updated.
*/
public Duration staleTime() {
return staleTime;
}

/**
* The amount of time, relative to STS token expiration, that the cached credentials are considered close to stale and should be updated.
* The amount of time, relative to STS token expiration, that the cached credentials are considered close to stale
* and should be updated.
*/
public Duration prefetchTime() {
return prefetchTime;
Expand Down Expand Up @@ -133,8 +134,8 @@ protected BaseBuilder(Function<B, T> providerConstructor) {
}

/**
* Configure the {@link StsClient} to use when calling STS to update the session. This client should not be shut down
* as long as this credentials provider is in use.
* Configure the {@link StsClient} to use when calling STS to update the session. This client should not be shut
* down as long as this credentials provider is in use.
*
* @param stsClient The STS client to use for communication with STS.
* @return This object for chained calls.
Expand All @@ -146,8 +147,9 @@ public B stsClient(StsClient stsClient) {
}

/**
* Configure whether the provider should fetch credentials asynchronously in the background. If this is true, threads are
* less likely to block when credentials are loaded, but additional resources are used to maintain the provider.
* Configure whether the provider should fetch credentials asynchronously in the background. If this is true,
* threads are less likely to block when credentials are loaded, but additional resources are used to maintain
* the provider.
*
* <p>By default, this is disabled.</p>
*/
Expand All @@ -158,8 +160,8 @@ public B asyncCredentialUpdateEnabled(Boolean asyncCredentialUpdateEnabled) {
}

/**
* Configure the amount of time, relative to STS token expiration, that the cached credentials are considered stale and should no longer be used.
* All threads will block until the value is updated.
* Configure the amount of time, relative to STS token expiration, that the cached credentials are considered
* stale and should no longer be used. All threads will block until the value is updated.
*
* <p>By default, this is 1 minute.</p>
*/
Expand All @@ -170,8 +172,8 @@ public B staleTime(Duration staleTime) {
}

/**
* Configure the amount of time, relative to STS token expiration, that the cached credentials are considered close to stale and should be updated.
* See {@link #asyncCredentialUpdateEnabled}.
* Configure the amount of time, relative to STS token expiration, that the cached credentials are considered
* close to stale and should be updated. See {@link #asyncCredentialUpdateEnabled}.
*
* <p>By default, this is 5 minutes.</p>
*/
Expand Down