com.google.cloud.bigtable.grpc.io
Class OAuthCredentialsCache
- java.lang.Object
-
- com.google.cloud.bigtable.grpc.io.OAuthCredentialsCache
-
public class OAuthCredentialsCache extends Object
This class caches calls toOAuth2Credentials.refreshAccessToken()
. It asynchronously refreshes the token when it becomes stale.- Version:
- $Id: $Id
- Author:
- sduskis
-
-
Constructor Summary
Constructors Constructor and Description OAuthCredentialsCache(ExecutorService scheduler, com.google.auth.oauth2.OAuth2Credentials credentials)
Constructor for RefreshingOAuth2CredentialsInterceptor.
-
-
-
Constructor Detail
-
OAuthCredentialsCache
public OAuthCredentialsCache(ExecutorService scheduler, com.google.auth.oauth2.OAuth2Credentials credentials)
Constructor for RefreshingOAuth2CredentialsInterceptor.- Parameters:
scheduler
- aExecutorService
object.credentials
- aOAuth2Credentials
object.
-
-