public class DefaultMessageBodySerializer extends Object implements MessageBodySerializer
Constructor and Description |
---|
DefaultMessageBodySerializer() |
Modifier and Type | Method and Description |
---|---|
byte[] |
serialize(Object body)
Currently, we just convert string to bytes using UTF-8 charset.
|
public byte[] serialize(Object body)
Currently, we just convert string to bytes using UTF-8 charset. Note: in this way, object.toString() method is invoked.
serialize
in interface MessageBodySerializer
body
- RocketMQ Message bodyCopyright © 2022 The Apache Software Foundation. All rights reserved.