Package io.micronaut.rabbitmq.intercept
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
- Specified by:
getHeadersin interfacecom.rabbitmq.client.BasicProperties
-
setHeaders
Sets the headers.- Parameters:
headers- The headers
-
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
Sets the priority.- Parameters:
priority- The priority
-
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
Sets the reply to.- Parameters:
replyTo- The reply to
-
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
Sets the timestamp.- Parameters:
timestamp- The timestamp
-
getType
- Specified by:
getTypein interfacecom.rabbitmq.client.BasicProperties
-
setType
Sets the type.- Parameters:
type- The type
-
getUserId
- Specified by:
getUserIdin interfacecom.rabbitmq.client.BasicProperties
-
setUserId
Sets the user id.- Parameters:
userId- The user id
-
getAppId
- Specified by:
getAppIdin interfacecom.rabbitmq.client.BasicProperties
-
setAppId
Sets the app id.- Parameters:
appId- The app id
-
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
-