Class DataMessage
- java.lang.Object
-
- org.apache.hugegraph.computer.core.network.message.AbstractMessage
-
- org.apache.hugegraph.computer.core.network.message.DataMessage
-
- All Implemented Interfaces:
Message,RequestMessage
public class DataMessage extends AbstractMessage implements RequestMessage
-
-
Field Summary
-
Fields inherited from class org.apache.hugegraph.computer.core.network.message.AbstractMessage
HEADER_LENGTH, LENGTH_BODY_LENGTH, MAGIC_NUMBER, MAX_MESSAGE_LENGTH, OFFSET_BODY_LENGTH, PROTOCOL_VERSION, START_SEQ, UNKNOWN_SEQ
-
-
Constructor Summary
Constructors Constructor Description DataMessage(MessageType type, int requestId, int partition, NetworkBuffer data)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataMessageparseWithFileRegion(MessageType type, io.netty.buffer.ByteBuf buf)static DataMessageparseWithMemoryBuffer(MessageType type, io.netty.buffer.ByteBuf buf)Decoding uses the given ByteBuf as our data.MessageTypetype()Used to identify this message type.-
Methods inherited from class org.apache.hugegraph.computer.core.network.message.AbstractMessage
assertExtraHeader, body, encode, encodeBody, encodeHeader, hasBody, partition, release, sequenceNumber, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.hugegraph.computer.core.network.message.Message
body, encode, hasBody, partition, release, sequenceNumber
-
Methods inherited from interface org.apache.hugegraph.computer.core.network.message.RequestMessage
requestId
-
-
-
-
Constructor Detail
-
DataMessage
public DataMessage(MessageType type, int requestId, int partition, NetworkBuffer data)
-
-
Method Detail
-
type
public MessageType type()
Description copied from interface:MessageUsed to identify this message type.
-
parseWithMemoryBuffer
public static DataMessage parseWithMemoryBuffer(MessageType type, io.netty.buffer.ByteBuf buf)
Decoding uses the given ByteBuf as our data.
-
parseWithFileRegion
public static DataMessage parseWithFileRegion(MessageType type, io.netty.buffer.ByteBuf buf)
-
-