All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.subscriptions.IronMqDestination Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
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