| Constructor and Description |
|---|
MessageCodec() |
| Modifier and Type | Method and Description |
|---|---|
Optional<Message> |
deserialize(com.rabbitmq.client.AMQP.BasicProperties properties,
byte[] body)
Deserializes the given
Message as received via AMQP. |
byte[] |
serialize(com.rabbitmq.client.AMQP.BasicProperties.Builder propertiesBuilder,
Message message)
Serializes the given
Message for JSON-encoded transport over AMQP. |
public byte[] serialize(com.rabbitmq.client.AMQP.BasicProperties.Builder propertiesBuilder,
Message message)
Message for JSON-encoded transport over AMQP.
Encryption needs to be taken care of separately, if needed.propertiesBuilder - will receive message-related propertiesmessage - message to encodepublic Optional<Message> deserialize(com.rabbitmq.client.AMQP.BasicProperties properties, byte[] body)
Message as received via AMQP.
Decryption and signature verification is not taken care of.properties - message properties as received from AMQPbody - serialized message to decode (must have been decrypted)Copyright © 2025. All rights reserved.