Package com.oracle.bmc.retrier
Class TokenRefreshRetrier
- java.lang.Object
-
- com.oracle.bmc.retrier.BmcGenericRetrier
-
- com.oracle.bmc.retrier.TokenRefreshRetrier
-
public class TokenRefreshRetrier extends BmcGenericRetrier
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.
-
-
Constructor Summary
Constructors Constructor Description TokenRefreshRetrier(AbstractAuthenticationDetailsProvider authenticationDetailsProvider)
Create a new instance.
-
Method Summary
-
Methods inherited from class com.oracle.bmc.retrier.BmcGenericRetrier
doFunctionCall, doFunctionCallAsync, execute, executeAsync, getRetryCondition, getWaiter
-
-
-
-
Constructor Detail
-
TokenRefreshRetrier
public TokenRefreshRetrier(@Nonnull AbstractAuthenticationDetailsProvider authenticationDetailsProvider)
Create a new instance.- Parameters:
authenticationDetailsProvider
- The authentication provider used by the client.
-
-