Class MutableBasicProperties
java.lang.Object
io.micronaut.rabbitmq.intercept.MutableBasicProperties
- All Implemented Interfaces:
com.rabbitmq.client.BasicProperties
A class that stores the basic properties in a mutable state.
- Since:
- 1.1.0
- Author:
- James Kleeh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAppId()getType()voidSets the app id.voidsetClusterId(String clusterId) Sets the cluster id.voidsetContentEncoding(String contentEncoding) Sets the content encoding.voidsetContentType(String contentType) Sets the content type.voidsetCorrelationId(String correlationId) Sets the correlation id.voidsetDeliveryMode(Integer deliveryMode) Sets the delivery mode.voidsetExpiration(String expiration) Sets the expiration.voidsetHeaders(Map<String, Object> headers) Sets the headers.voidsetMessageId(String messageId) Sets the message id.voidsetPriority(Integer priority) Sets the priority.voidsetReplyTo(String replyTo) Sets the reply to.voidsetTimestamp(Date timestamp) Sets the timestamp.voidSets the type.voidSets the user id.com.rabbitmq.client.AMQP.BasicPropertiesConverts the mutable properties to the RabbitMQ properties.
-
Constructor Details
-
MutableBasicProperties
public MutableBasicProperties()
-
-
Method Details
-
getContentType
- Specified by:
getContentTypein interfacecom.rabbitmq.client.BasicProperties
-
setContentType
Sets the content type.- Parameters:
contentType- The content type
-
getContentEncoding
- Specified by:
getContentEncodingin interfacecom.rabbitmq.client.BasicProperties
-
setContentEncoding
Sets the content encoding.- Parameters:
contentEncoding- The content encoding
-
getHeaders
-
setHeaders
-
getDeliveryMode
- Specified by:
getDeliveryModein interfacecom.rabbitmq.client.BasicProperties
-
setDeliveryMode
Sets the delivery mode.- Parameters:
deliveryMode- The delivery mode
-
getPriority
- Specified by:
getPriorityin interfacecom.rabbitmq.client.BasicProperties
-
setPriority
-
getCorrelationId
- Specified by:
getCorrelationIdin interfacecom.rabbitmq.client.BasicProperties
-
setCorrelationId
Sets the correlation id.- Parameters:
correlationId- The correlation id
-
getReplyTo
- Specified by:
getReplyToin interfacecom.rabbitmq.client.BasicProperties
-
setReplyTo
-
getExpiration
- Specified by:
getExpirationin interfacecom.rabbitmq.client.BasicProperties
-
setExpiration
Sets the expiration.- Parameters:
expiration- The expiration
-
getMessageId
- Specified by:
getMessageIdin interfacecom.rabbitmq.client.BasicProperties
-
setMessageId
Sets the message id.- Parameters:
messageId- The message id
-
getTimestamp
- Specified by:
getTimestampin interfacecom.rabbitmq.client.BasicProperties
-
setTimestamp
-
getType
- Specified by:
getTypein interfacecom.rabbitmq.client.BasicProperties
-
setType
-
getUserId
- Specified by:
getUserIdin interfacecom.rabbitmq.client.BasicProperties
-
setUserId
-
getAppId
- Specified by:
getAppIdin interfacecom.rabbitmq.client.BasicProperties
-
setAppId
-
getClusterId
- Returns:
- The cluster id
-
setClusterId
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
-