public class DNSMX extends Serializable
DNSResourceData for MX type| Modifier and Type | Method and Description |
|---|---|
int |
byteBufSize() |
void |
fromByteBuf(io.netty.buffer.ByteBuf buffer)
Fills this object with the data from the
ByteBuf. |
java.lang.String |
getExchange() |
int |
getPreference() |
void |
setExchange(java.lang.String exchange) |
void |
setPreference(int preference) |
void |
toByteBuf(io.netty.buffer.ByteBuf buffer)
Writes the data of this object into the
ByteBuf. |
java.lang.String |
toString() |
toByteBufpublic int getPreference()
public void setPreference(int preference)
@NotNull public java.lang.String getExchange()
public void setExchange(@NotNull
java.lang.String exchange)
public int byteBufSize()
byteBufSize in class Serializablepublic void toByteBuf(@NotNull
io.netty.buffer.ByteBuf buffer)
SerializableByteBuf.toByteBuf in class Serializablebuffer - buffer to store the datapublic void fromByteBuf(@NotNull
io.netty.buffer.ByteBuf buffer)
throws DataNotRepresentsObject
SerializableByteBuf.
If the buffer contents doesn't match the object specification,
should throw IllegalArgumentException.fromByteBuf in class Serializablebuffer - buffer with the dataDataNotRepresentsObject - If the buffer data doesn't
represent the objectpublic java.lang.String toString()
toString in class java.lang.Object