Package discord4j.gateway.payload
Interface PayloadReader
-
- All Known Implementing Classes:
JacksonPayloadReader
public interface PayloadReader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Publisher<GatewayPayload<?>>read(ByteBuf payload)Read from the input buffer and encode to a single object.
-
-
-
Method Detail
-
read
Publisher<GatewayPayload<?>> read(ByteBuf payload)
Read from the input buffer and encode to a single object.- Parameters:
payload- the input byte buffer- Returns:
- a publisher of
GatewayPayloadrepresenting the inbound payload
-
-