Class CachedTokenRefresher<TokenT extends SdkToken>

java.lang.Object
software.amazon.awssdk.awscore.internal.token.CachedTokenRefresher<TokenT>
All Implemented Interfaces:
AutoCloseable, TokenRefresher<TokenT>, SdkAutoCloseable

@ThreadSafe public final class CachedTokenRefresher<TokenT extends SdkToken> extends Object implements TokenRefresher<TokenT>
Class to cache Tokens which are supplied by the Suppliers while constructing this class. Automatic refresh can be enabled by setting autoRefreshDuration in builder methods.