jp.gopay.sdk.builders.Request Maven / Gradle / Ivy
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 - 2025 Weber Informatics LLC | Privacy Policy