io.sphere.sdk.client.PlayJavaSphereClient Maven / Gradle / Ivy
package io.sphere.sdk.client;
import play.libs.F;
import static java.util.Objects.requireNonNull;
public interface PlayJavaSphereClient extends AutoCloseable {
F.Promise execute(final SphereRequest sphereRequest);
void close();
static PlayJavaSphereClient of(final SphereClient underlying) {
final String message = "Underlying client instance should not be null.";
return PlayJavaSphereClientImpl.of(requireNonNull(underlying, message));
}
}