T
- The type to be serialized/deserializedpublic interface RabbitMessageSerDes<T>
extends io.micronaut.core.order.Ordered
Modifier and Type | Method and Description |
---|---|
T |
deserialize(RabbitConsumerState consumerState,
Class<T> type)
Deserializes the message into the requested type.
|
byte[] |
serialize(T data)
Serializes the data into a byte[] to be published
to RabbitMQ.
|
boolean |
supports(Class<T> type)
Determines if this serdes supports the given type.
|
T deserialize(RabbitConsumerState consumerState, Class<T> type)
consumerState
- The message to deserializetype
- The type to be returnedbyte[] serialize(T data)
data
- The data to serialize