public final class ServerMessageDecoder extends Object
| Constructor and Description |
|---|
ServerMessageDecoder() |
| Modifier and Type | Method and Description |
|---|---|
@Nullable ServerMessage |
decode(io.netty.buffer.ByteBuf envelope,
ConnectionContext context,
DecodeContext decodeContext)
Decode a server-side message from
parts and current envelope. |
void |
dispose()
Dispose the underlying resource.
|
@Nullable public @Nullable ServerMessage decode(io.netty.buffer.ByteBuf envelope, ConnectionContext context, DecodeContext decodeContext)
parts and current envelope.envelope - the current envelope.context - the connection context.decodeContext - the decode context.null if envelope is not last packet.public void dispose()
Copyright © 2018–2023 asyncer.io. All rights reserved.