Class MessageSubscriptionImpl

java.lang.Object
com.commercetools.api.models.subscription.MessageSubscriptionImpl
All Implemented Interfaces:
MessageSubscription, io.vrap.rmf.base.client.ModelBase

public class MessageSubscriptionImpl extends Object implements MessageSubscription, io.vrap.rmf.base.client.ModelBase

For supported resources and message types, see Message Types. Messages will be delivered even if the Messages Query HTTP API is not enabled.

For MessageSubscriptions, the format of the payload is MessageDeliveryPayload.

  • Constructor Details

    • MessageSubscriptionImpl

      public MessageSubscriptionImpl()
      create empty instance
  • Method Details

    • getResourceTypeId

      public MessageSubscriptionResourceTypeId getResourceTypeId()

      Unique identifier for the type of resource, for example, order.

      Specified by:
      getResourceTypeId in interface MessageSubscription
      Returns:
      resourceTypeId
    • getTypes

      public List<String> getTypes()

      Must contain valid message types for the resource. For example, for resource type product the message type ProductPublished is valid. If no types of messages are given, the Subscription will receive all messages for this resource.

      Specified by:
      getTypes in interface MessageSubscription
      Returns:
      types
    • setResourceTypeId

      public void setResourceTypeId(MessageSubscriptionResourceTypeId resourceTypeId)
      Description copied from interface: MessageSubscription

      Unique identifier for the type of resource, for example, order.

      Specified by:
      setResourceTypeId in interface MessageSubscription
      Parameters:
      resourceTypeId - value to be set
    • setTypes

      public void setTypes(String... types)
      Description copied from interface: MessageSubscription

      Must contain valid message types for the resource. For example, for resource type product the message type ProductPublished is valid. If no types of messages are given, the Subscription will receive all messages for this resource.

      Specified by:
      setTypes in interface MessageSubscription
      Parameters:
      types - values to be set
    • setTypes

      public void setTypes(List<String> types)
      Description copied from interface: MessageSubscription

      Must contain valid message types for the resource. For example, for resource type product the message type ProductPublished is valid. If no types of messages are given, the Subscription will receive all messages for this resource.

      Specified by:
      setTypes in interface MessageSubscription
      Parameters:
      types - values to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object