io.sphere.sdk.subscriptions.IronMqDestination Maven / Gradle / Ivy
package io.sphere.sdk.subscriptions;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.sphere.sdk.annotations.ResourceValue;
import java.net.URI;
import static java.util.Objects.requireNonNull;
/**
* IronMQ can be used as a pull-queue, but it can also be used to push messages to IronWorkers or HTTP endpoints
* (webhooks) or fan-out messages to other IronMQ queues.
*/
@JsonDeserialize(as = IronMqDestinationImpl.class)
@ResourceValue
public interface IronMqDestination extends Destination {
/**
* The webhook uri of your IronMQ.
*
* @return the webhook uri
*/
URI getUri();
static IronMqDestination of(final URI uri) {
return new IronMqDestinationImpl("IronMQ", requireNonNull(uri));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy