io.sphere.client.DeleteRequest Maven / Gradle / Ivy
package io.sphere.client;
import com.google.common.base.Optional;
import com.google.common.util.concurrent.ListenableFuture;
import net.jcip.annotations.Immutable;
import javax.annotation.Nonnull;
@Immutable
public interface DeleteRequest{
/** Executes the request and returns the deleted object. */
Optional execute();
/** Executes the request asynchronously and returns a future of the deleted object. */
ListenableFuture> executeAsync();
}