All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.here.account.oauth2.retry.RetryContext Maven / Gradle / Ivy

Go to download

here-oauth-client is for clients of the HERE AAA, and supports OAuth2.0 grant_types=client_credentials

There is a newer version: 0.4.9
Show newest version
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