Top Description Fields Constructors Methods
com.oracle.bmc.retrier

public Class TokenRefreshRetrier

extends BmcGenericRetrier
Class Inheritance
Imports
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider, .RefreshableOnNotAuthenticatedProvider, com.oracle.bmc.waiter.DelayStrategy, .FixedTimeDelayStrategy, .MaxAttemptsTerminationStrategy, .TerminationStrategy, jakarta.annotation.Nonnull

A custom retrier that refreshes tokens and retries the operation in case of authentication failures. This retrier will make at max 2 attempts with no delay between the retried requests.

Field Summary

Modifier and TypeField and Description
private static DelayStrategy
private static TerminationStrategy

Constructor Summary

AccessConstructor and Description
public
TokenRefreshRetrier(final AbstractAuthenticationDetailsProvider
The authentication provider used by the client.
authenticationDetailsProvider
)

Create a new instance.

Method Summary

Modifier and TypeMethod and Description
private static RetryConfiguration
Inherited from com.oracle.bmc.retrier.BmcGenericRetrier:
doFunctionCalldoFunctionCallAsyncexecuteexecuteAsyncgetRetryConditiongetWaiter

Field Detail

TOKEN_REFRESH_DELAY_STRATEGYback to summary
private static DelayStrategy TOKEN_REFRESH_DELAY_STRATEGY
TOKEN_REFRESH_TERMINATION_STRATEGYback to summary
private static TerminationStrategy TOKEN_REFRESH_TERMINATION_STRATEGY

Constructor Detail

TokenRefreshRetrierback to summary
public TokenRefreshRetrier(final AbstractAuthenticationDetailsProvider authenticationDetailsProvider)

Create a new instance.

Parameters
authenticationDetailsProvider:AbstractAuthenticationDetailsProvider

The authentication provider used by the client.

Method Detail

createTokenRefreshRetryConfigurationback to summary
private static RetryConfiguration createTokenRefreshRetryConfiguration(final AbstractAuthenticationDetailsProvider authenticationDetailsProvider)