Package io.atleon.rabbitmq
Class RabbitMQMessage<T>
- java.lang.Object
-
- io.atleon.rabbitmq.RabbitMQMessage<T>
-
- Type Parameters:
T- The type of (deserialized) body referenced by this message
- Direct Known Subclasses:
ReceivedRabbitMQMessage
public class RabbitMQMessage<T> extends Object
Container for information that may either be received from a RabbitMQ queue or sent to a RabbitMQ exchange.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Tbody()static <T> RabbitMQMessage<T>create(String exchange, String routingKey, com.rabbitmq.client.AMQP.BasicProperties properties, T body)Stringexchange()TgetBody()Deprecated.Usebody()StringgetExchange()Deprecated.Useexchange()com.rabbitmq.client.AMQP.BasicPropertiesgetProperties()Deprecated.Useproperties()StringgetRoutingKey()Deprecated.UseroutingKey()com.rabbitmq.client.AMQP.BasicPropertiesproperties()StringroutingKey()
-
-
-
Method Detail
-
create
public static <T> RabbitMQMessage<T> create(String exchange, String routingKey, com.rabbitmq.client.AMQP.BasicProperties properties, T body)
-
getExchange
@Deprecated public String getExchange()
Deprecated.Useexchange()
-
exchange
public String exchange()
-
getRoutingKey
@Deprecated public String getRoutingKey()
Deprecated.UseroutingKey()
-
routingKey
public String routingKey()
-
getProperties
@Deprecated public com.rabbitmq.client.AMQP.BasicProperties getProperties()
Deprecated.Useproperties()
-
properties
public com.rabbitmq.client.AMQP.BasicProperties properties()
-
getBody
@Deprecated public T getBody()
Deprecated.Usebody()
-
body
public T body()
-
-