public class ReturnStatus extends AbstractDataToken
| Modifier and Type | Field and Description |
|---|---|
static byte |
TYPE |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canDecode(io.netty.buffer.ByteBuf buffer)
Check whether the
ByteBuf can be decoded into a ReturnStatus. |
static ReturnStatus |
create(int status)
Creates a new
ReturnStatus |
static ReturnStatus |
decode(io.netty.buffer.ByteBuf buffer)
Decode a
ReturnStatus. |
String |
getName() |
int |
getStatus() |
byte |
getType() |
String |
toString() |
public static final byte TYPE
public static ReturnStatus create(int status)
ReturnStatusstatus - the status value.ReturnStatus.public static ReturnStatus decode(io.netty.buffer.ByteBuf buffer)
ReturnStatus.buffer - the data buffer.ReturnStatus.public static boolean canDecode(io.netty.buffer.ByteBuf buffer)
ByteBuf can be decoded into a ReturnStatus.buffer - the data buffer.true if the buffer contains sufficient data to entirely decode a ReturnStatus.public int getStatus()
public byte getType()
getType in interface DataTokengetType in class AbstractDataTokenpublic String getName()
getName in interface DataTokengetName in class AbstractDataTokenAbstractDataToken.Copyright © 2023. All rights reserved.