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

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

There is a newer version: 2.16.0
Show newest version
package io.sphere.sdk.subscriptions;

import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;

/**
 * A destination contains all info necessary for Composable Commerce to deliver a message onto your Message Queue.
 * Message Queues can be differentiated by the sub types of this interface.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true)
@JsonSubTypes(
            {       @JsonSubTypes.Type(value = IronMqDestinationImpl.class, name = "IronMQ"),
                    @JsonSubTypes.Type(value = AzureServiceBusDestinationImpl.class, name = "AzureServiceBus"),
                    @JsonSubTypes.Type(value = SnsDestinationImpl.class, name = "SNS"),
                    @JsonSubTypes.Type(value = SqsDestinationImpl.class, name = "SQS"),
                    @JsonSubTypes.Type(value = PubSubDestinationImpl.class, name = "GoogleCloudPubSub")
            }
        )
public interface Destination {
    String getType();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy