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,
           io.micronaut.core.type.Argument<T> argument)Deserializes the message into the requested type. | 
| byte[] | serialize(T data,
         MutableBasicProperties properties)Serializes the data into a byte[] to be published
 to RabbitMQ. | 
| boolean | supports(io.micronaut.core.type.Argument<T> type)Determines if this serdes supports the given type. | 
@Nullable T deserialize(RabbitConsumerState consumerState, io.micronaut.core.type.Argument<T> argument)
consumerState - The message to deserializeargument - The type to be returned@Nullable
byte[] serialize(@Nullable
                           T data,
                           MutableBasicProperties properties)
data - The data to serializeproperties - The properties of the messageboolean supports(io.micronaut.core.type.Argument<T> type)
type - The type