Class MutableBasicProperties

java.lang.Object
io.micronaut.rabbitmq.intercept.MutableBasicProperties
All Implemented Interfaces:
com.rabbitmq.client.BasicProperties

public class MutableBasicProperties extends Object implements com.rabbitmq.client.BasicProperties
A class that stores the basic properties in a mutable state.
Since:
1.1.0
Author:
James Kleeh
  • Constructor Details

    • MutableBasicProperties

      public MutableBasicProperties()
  • Method Details

    • getContentType

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public void setClusterId(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