接口 MsgCodec

所有已知实现类:
MsgCodecImpl

public interface MsgCodec
Stomp 消息编解码器
从以下版本开始:
v3.1.0
  • 方法详细资料

    • encode

      String encode(Message input)
      编码
      参数:
      input - Stomp 消息
      返回:
      编码后的文本
    • decode

      void decode(String input, Consumer<Message> out)
      解码
      参数:
      input - 输入
      out - 输出