public class OFErrorCauseData extends Object implements Writeable, PrimitiveSinkable
OFErrorMsg message
that contains a byte serialization of the offending message.
This attempts to parse the offending message on demand, and if successful
will present the parsed message.| Modifier and Type | Field and Description |
|---|---|
static OFErrorCauseData |
NONE
A default 'empty' cause.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
byte[] |
getData() |
com.google.common.base.Optional<OFMessage> |
getParsedMessage() |
int |
hashCode() |
static OFErrorCauseData |
of(byte[] data,
OFVersion version) |
void |
putTo(com.google.common.hash.PrimitiveSink sink)
Dump the state of this object into a
PrimitiveSink (e.g., a Hasher) for the purpose
of computing a strong hash. |
static OFErrorCauseData |
read(io.netty.buffer.ByteBuf bb,
int length,
OFVersion version) |
String |
toString() |
void |
writeTo(io.netty.buffer.ByteBuf bb) |
public static final OFErrorCauseData NONE
public static OFErrorCauseData of(byte[] data, OFVersion version)
public byte[] getData()
public com.google.common.base.Optional<OFMessage> getParsedMessage()
public static OFErrorCauseData read(io.netty.buffer.ByteBuf bb, int length, OFVersion version)
public void putTo(com.google.common.hash.PrimitiveSink sink)
PrimitiveSinkablePrimitiveSink (e.g., a Hasher) for the purpose
of computing a strong hash.
Equality contract:
Equal objects must dump the equal data into the sink, non-equal objects must dump different
data into the sink. Please see the interface documentation of PrimitiveSink for more
details and caveats/traps.putTo in interface PrimitiveSinkablesink - the sink to dump the object state into.public void writeTo(io.netty.buffer.ByteBuf bb)
Copyright © 2020. All rights reserved.