Package org.entur.jwt.client
Class RetryingAccessTokenProvider
java.lang.Object
org.entur.jwt.client.BaseAccessTokenProvider
org.entur.jwt.client.RetryingAccessTokenProvider
- All Implemented Interfaces:
Closeable,AutoCloseable,AccessTokenHealthProvider,AccessTokenProvider
This provider implements a workaround for transient network problems.
It retries getting the AccessToken if the wrapped provider throws a AccessTokenUnavailableException.
It retries getting the AccessToken if the wrapped provider throws a AccessTokenUnavailableException.
-
Field Summary
Fields inherited from class org.entur.jwt.client.BaseAccessTokenProvider
logger, provider -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.entur.jwt.client.BaseAccessTokenProvider
close, getHealth, getProvider, supportsHealth
-
Constructor Details
-
RetryingAccessTokenProvider
-
-
Method Details
-
getAccessToken
- Throws:
AccessTokenException
-