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

jp.gopay.sdk.builders.Request Maven / Gradle / Ivy

There is a newer version: 0.11.17
Show newest version
package jp.gopay.sdk.builders;

import jp.gopay.sdk.models.errors.GoPayException;
import jp.gopay.sdk.models.errors.TooManyRequestsException;
import jp.gopay.sdk.utils.GoPayCallback;
import jp.gopay.sdk.utils.Sleeper;

import java.io.IOException;

public interface Request {

    /**
     * Executes the request, processing asynchronously and calling the corresponding callback (response/failure)
     */
    void dispatch(GoPayCallback callback);

    E dispatch() throws IOException, GoPayException, TooManyRequestsException;

    E dispatch(int maxRetry, Sleeper sleeper) throws IOException, GoPayException, TooManyRequestsException, InterruptedException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy