public class JsonGrayEventCodec extends Object implements GrayEventCodec<String>
| 构造器和说明 |
|---|
JsonGrayEventCodec() |
JsonGrayEventCodec(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
public JsonGrayEventCodec()
public JsonGrayEventCodec(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public String encode(GrayEvent event) throws IOException
encode 在接口中 GrayEventEncoder<String>IOExceptionpublic <T extends GrayEvent> T decode(String content, Class<T> cls) throws IOException
decode 在接口中 GrayEventDecoder<String>IOExceptionCopyright © 2020 Spring Cloud中国社区. All rights reserved.