Package com.google.auth.oauth2
Class OAuth2Credentials.AsyncRefreshResult
- java.lang.Object
-
- com.google.auth.oauth2.OAuth2Credentials.AsyncRefreshResult
-
- Enclosing class:
- OAuth2Credentials
static class OAuth2Credentials.AsyncRefreshResult extends java.lang.Object
Result fromOAuth2Credentials.getOrCreateRefreshTask()
.Contains the the refresh task and a flag indicating if the task is newly created. If the task is newly created, it is the caller's responsibility to execute it.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
isNew
private OAuth2Credentials.RefreshTask
task
-
Constructor Summary
Constructors Constructor Description AsyncRefreshResult(OAuth2Credentials.RefreshTask task, boolean isNew)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
executeIfNew(java.util.concurrent.Executor executor)
-
-
-
Field Detail
-
task
private final OAuth2Credentials.RefreshTask task
-
isNew
private final boolean isNew
-
-
Constructor Detail
-
AsyncRefreshResult
AsyncRefreshResult(OAuth2Credentials.RefreshTask task, boolean isNew)
-
-