接口 MessagePayload
-
public interface MessagePayloadThe abstraction of a message's payload.
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 byte[]copiedBuffer()Copy the bytes of the payload into the byte array.default voidrelease()Release the resources if necessary.
-
-
-
方法详细资料
-
copiedBuffer
byte[] copiedBuffer()
Copy the bytes of the payload into the byte array.- 返回:
- the byte array that is filled with the readable bytes of the payload, it should not be null
-
release
default void release()
Release the resources if necessary. NOTE: For a MessagePayload object that is created fromMessagePayloadFactory.DEFAULT, this method must be called to avoid memory leak.
-
-