Class MutableBasicProperties

  • All Implemented Interfaces:
    com.rabbitmq.client.BasicProperties

    public class MutableBasicProperties
    extends java.lang.Object
    implements com.rabbitmq.client.BasicProperties
    A class that stores the basic properties in a mutable state.
    Since:
    1.1.0
    • Constructor Detail

      • MutableBasicProperties

        public MutableBasicProperties()
    • Method Detail

      • getContentType

        public java.lang.String getContentType()
        Specified by:
        getContentType in interface com.rabbitmq.client.BasicProperties
      • setContentType

        public void setContentType​(java.lang.String contentType)
        Sets the content type.
        Parameters:
        contentType - The content type
      • getContentEncoding

        public java.lang.String getContentEncoding()
        Specified by:
        getContentEncoding in interface com.rabbitmq.client.BasicProperties
      • setContentEncoding

        public void setContentEncoding​(java.lang.String contentEncoding)
        Sets the content encoding.
        Parameters:
        contentEncoding - The content encoding
      • getHeaders

        public java.util.Map<java.lang.String,​java.lang.Object> getHeaders()
        Specified by:
        getHeaders in interface com.rabbitmq.client.BasicProperties
      • setHeaders

        public void setHeaders​(java.util.Map<java.lang.String,​java.lang.Object> headers)
        Sets the headers.
        Parameters:
        headers - The headers
      • getDeliveryMode

        public java.lang.Integer getDeliveryMode()
        Specified by:
        getDeliveryMode in interface com.rabbitmq.client.BasicProperties
      • setDeliveryMode

        public void setDeliveryMode​(java.lang.Integer deliveryMode)
        Sets the delivery mode.
        Parameters:
        deliveryMode - The delivery mode
      • getPriority

        public java.lang.Integer getPriority()
        Specified by:
        getPriority in interface com.rabbitmq.client.BasicProperties
      • setPriority

        public void setPriority​(java.lang.Integer priority)
        Sets the priority.
        Parameters:
        priority - The priority
      • getCorrelationId

        public java.lang.String getCorrelationId()
        Specified by:
        getCorrelationId in interface com.rabbitmq.client.BasicProperties
      • setCorrelationId

        public void setCorrelationId​(java.lang.String correlationId)
        Sets the correlation id.
        Parameters:
        correlationId - The correlation id
      • getReplyTo

        public java.lang.String getReplyTo()
        Specified by:
        getReplyTo in interface com.rabbitmq.client.BasicProperties
      • setReplyTo

        public void setReplyTo​(java.lang.String replyTo)
        Sets the reply to.
        Parameters:
        replyTo - The reply to
      • getExpiration

        public java.lang.String getExpiration()
        Specified by:
        getExpiration in interface com.rabbitmq.client.BasicProperties
      • setExpiration

        public void setExpiration​(java.lang.String expiration)
        Sets the expiration.
        Parameters:
        expiration - The expiration
      • getMessageId

        public java.lang.String getMessageId()
        Specified by:
        getMessageId in interface com.rabbitmq.client.BasicProperties
      • setMessageId

        public void setMessageId​(java.lang.String messageId)
        Sets the message id.
        Parameters:
        messageId - The message id
      • getTimestamp

        public java.util.Date getTimestamp()
        Specified by:
        getTimestamp in interface com.rabbitmq.client.BasicProperties
      • setTimestamp

        public void setTimestamp​(java.util.Date timestamp)
        Sets the timestamp.
        Parameters:
        timestamp - The timestamp
      • getType

        public java.lang.String getType()
        Specified by:
        getType in interface com.rabbitmq.client.BasicProperties
      • setType

        public void setType​(java.lang.String type)
        Sets the type.
        Parameters:
        type - The type
      • getUserId

        public java.lang.String getUserId()
        Specified by:
        getUserId in interface com.rabbitmq.client.BasicProperties
      • setUserId

        public void setUserId​(java.lang.String userId)
        Sets the user id.
        Parameters:
        userId - The user id
      • getAppId

        public java.lang.String getAppId()
        Specified by:
        getAppId in interface com.rabbitmq.client.BasicProperties
      • setAppId

        public void setAppId​(java.lang.String appId)
        Sets the app id.
        Parameters:
        appId - The app id
      • getClusterId

        public java.lang.String getClusterId()
        Returns:
        The cluster id
      • setClusterId

        public void setClusterId​(java.lang.String clusterId)
        Sets the cluster id.
        Parameters:
        clusterId - The cluster id
      • toBasicProperties

        public com.rabbitmq.client.AMQP.BasicProperties toBasicProperties()
        Converts the mutable properties to the RabbitMQ properties.
        Returns:
        The RabbitMQ properties