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
-
Method Summary
Modifier and TypeMethodDescriptiongetAppId()
getType()
void
Sets the app id.void
setClusterId
(String clusterId) Sets the cluster id.void
setContentEncoding
(String contentEncoding) Sets the content encoding.void
setContentType
(String contentType) Sets the content type.void
setCorrelationId
(String correlationId) Sets the correlation id.void
setDeliveryMode
(Integer deliveryMode) Sets the delivery mode.void
setExpiration
(String expiration) Sets the expiration.void
setHeaders
(Map<String, Object> headers) Sets the headers.void
setMessageId
(String messageId) Sets the message id.void
setPriority
(Integer priority) Sets the priority.void
setReplyTo
(String replyTo) Sets the reply to.void
setTimestamp
(Date timestamp) Sets the timestamp.void
Sets the type.void
Sets the user id.com.rabbitmq.client.AMQP.BasicProperties
Converts the mutable properties to the RabbitMQ properties.
-
Constructor Details
-
MutableBasicProperties
public MutableBasicProperties()
-
-
Method Details
-
getContentType
- Specified by:
getContentType
in interfacecom.rabbitmq.client.BasicProperties
-
setContentType
Sets the content type.- Parameters:
contentType
- The content type
-
getContentEncoding
- Specified by:
getContentEncoding
in interfacecom.rabbitmq.client.BasicProperties
-
setContentEncoding
Sets the content encoding.- Parameters:
contentEncoding
- The content encoding
-
getHeaders
- Specified by:
getHeaders
in interfacecom.rabbitmq.client.BasicProperties
-
setHeaders
Sets the headers.- Parameters:
headers
- The headers
-
getDeliveryMode
- Specified by:
getDeliveryMode
in interfacecom.rabbitmq.client.BasicProperties
-
setDeliveryMode
Sets the delivery mode.- Parameters:
deliveryMode
- The delivery mode
-
getPriority
- Specified by:
getPriority
in interfacecom.rabbitmq.client.BasicProperties
-
setPriority
Sets the priority.- Parameters:
priority
- The priority
-
getCorrelationId
- Specified by:
getCorrelationId
in interfacecom.rabbitmq.client.BasicProperties
-
setCorrelationId
Sets the correlation id.- Parameters:
correlationId
- The correlation id
-
getReplyTo
- Specified by:
getReplyTo
in interfacecom.rabbitmq.client.BasicProperties
-
setReplyTo
Sets the reply to.- Parameters:
replyTo
- The reply to
-
getExpiration
- Specified by:
getExpiration
in interfacecom.rabbitmq.client.BasicProperties
-
setExpiration
Sets the expiration.- Parameters:
expiration
- The expiration
-
getMessageId
- Specified by:
getMessageId
in interfacecom.rabbitmq.client.BasicProperties
-
setMessageId
Sets the message id.- Parameters:
messageId
- The message id
-
getTimestamp
- Specified by:
getTimestamp
in interfacecom.rabbitmq.client.BasicProperties
-
setTimestamp
Sets the timestamp.- Parameters:
timestamp
- The timestamp
-
getType
- Specified by:
getType
in interfacecom.rabbitmq.client.BasicProperties
-
setType
Sets the type.- Parameters:
type
- The type
-
getUserId
- Specified by:
getUserId
in interfacecom.rabbitmq.client.BasicProperties
-
setUserId
Sets the user id.- Parameters:
userId
- The user id
-
getAppId
- Specified by:
getAppId
in 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
-