jp.gopay.sdk.builders.Request Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gopay-java-sdk Show documentation
Show all versions of gopay-java-sdk Show documentation
Official Gyro-n Payments Java SDK
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;
}