Package io.micronaut.rabbitmq.intercept
Class MutableBasicProperties
- java.lang.Object
-
- io.micronaut.rabbitmq.intercept.MutableBasicProperties
-
- All Implemented Interfaces:
com.rabbitmq.client.BasicProperties
public class MutableBasicProperties extends java.lang.Object implements com.rabbitmq.client.BasicPropertiesA class that stores the basic properties in a mutable state.- Since:
- 1.1.0
-
-
Constructor Summary
Constructors Constructor Description MutableBasicProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAppId()java.lang.StringgetClusterId()java.lang.StringgetContentEncoding()java.lang.StringgetContentType()java.lang.StringgetCorrelationId()java.lang.IntegergetDeliveryMode()java.lang.StringgetExpiration()java.util.Map<java.lang.String,java.lang.Object>getHeaders()java.lang.StringgetMessageId()java.lang.IntegergetPriority()java.lang.StringgetReplyTo()java.util.DategetTimestamp()java.lang.StringgetType()java.lang.StringgetUserId()voidsetAppId(java.lang.String appId)Sets the app id.voidsetClusterId(java.lang.String clusterId)Sets the cluster id.voidsetContentEncoding(java.lang.String contentEncoding)Sets the content encoding.voidsetContentType(java.lang.String contentType)Sets the content type.voidsetCorrelationId(java.lang.String correlationId)Sets the correlation id.voidsetDeliveryMode(java.lang.Integer deliveryMode)Sets the delivery mode.voidsetExpiration(java.lang.String expiration)Sets the expiration.voidsetHeaders(java.util.Map<java.lang.String,java.lang.Object> headers)Sets the headers.voidsetMessageId(java.lang.String messageId)Sets the message id.voidsetPriority(java.lang.Integer priority)Sets the priority.voidsetReplyTo(java.lang.String replyTo)Sets the reply to.voidsetTimestamp(java.util.Date timestamp)Sets the timestamp.voidsetType(java.lang.String type)Sets the type.voidsetUserId(java.lang.String userId)Sets the user id.com.rabbitmq.client.AMQP.BasicPropertiestoBasicProperties()Converts the mutable properties to the RabbitMQ properties.
-
-
-
Method Detail
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentTypein interfacecom.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:
getContentEncodingin interfacecom.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:
getHeadersin interfacecom.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:
getDeliveryModein interfacecom.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:
getPriorityin interfacecom.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:
getCorrelationIdin interfacecom.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:
getReplyToin interfacecom.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:
getExpirationin interfacecom.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:
getMessageIdin interfacecom.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:
getTimestampin interfacecom.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:
getTypein interfacecom.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:
getUserIdin interfacecom.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:
getAppIdin interfacecom.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
-
-