
com.here.account.oauth2.retry.RetryContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of here-oauth-client Show documentation
Show all versions of here-oauth-client Show documentation
here-oauth-client is for clients of the HERE AAA, and supports OAuth2.0 grant_types=client_credentials
package com.here.account.oauth2.retry;
import com.here.account.http.HttpProvider;
/**
* A {@link RetryContext} contains data set to be used for next retry.
*/
public class RetryContext {
private int retryCount;
private HttpProvider.HttpResponse lastRetryResponse;
private Exception lastException;
public int getRetryCount() {
return this.retryCount;
}
/**
* Increments the retryCount by 1.
*/
public void incrementRetryCount() {
this.retryCount++;
}
public HttpProvider.HttpResponse getLastRetryResponse() {
return lastRetryResponse;
}
public void setLastRetryResponse(HttpProvider.HttpResponse lastRetryResponse) {
this.lastRetryResponse = lastRetryResponse;
}
public Exception getLastException() {
return lastException;
}
public void setLastException(Exception lastException) {
this.lastException = lastException;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy