@Singleton public class JavaMessageSerDes extends java.lang.Object implements PubSubMessageSerDes
Constructor and Description |
---|
JavaMessageSerDes() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
deserialize(byte[] data,
io.micronaut.core.type.Argument<?> type)
Deserializes data into a target type.
|
byte[] |
serialize(java.lang.Object data)
Serializes the message.
|
java.lang.String |
supportedType() |
public java.lang.String supportedType()
supportedType
in interface PubSubMessageSerDes
public java.lang.Object deserialize(byte[] data, io.micronaut.core.type.Argument<?> type)
PubSubMessageSerDes
deserialize
in interface PubSubMessageSerDes
data
- byte data to deserializetype
- target typepublic byte[] serialize(java.lang.Object data)
PubSubMessageSerDes
serialize
in interface PubSubMessageSerDes
data
- data to serialize