public class IgfsBlocksMessage extends IgfsCommunicationMessage
DIRECT_TYPE_SIZE| Constructor and Description |
|---|
IgfsBlocksMessage()
Empty constructor required by
Externalizable |
IgfsBlocksMessage(IgniteUuid fileId,
long id,
Map<IgfsBlockKey,byte[]> blocks)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Map<IgfsBlockKey,byte[]> |
blocks() |
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
IgniteUuid |
fileId() |
long |
id() |
void |
onAckReceived()
Method called when ack message received.
|
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
finishUnmarshal, prepareMarshalpublic IgfsBlocksMessage()
Externalizablepublic IgfsBlocksMessage(IgniteUuid fileId, long id, Map<IgfsBlockKey,byte[]> blocks)
fileId - File ID.id - Message id.blocks - Blocks to put in cache.public IgniteUuid fileId()
public long id()
public Map<IgfsBlockKey,byte[]> blocks()
public void onAckReceived()
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in interface MessagewriteTo in class IgfsCommunicationMessagebuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom in interface MessagereadFrom in class IgfsCommunicationMessagebuf - Byte buffer.reader - Reader.public short directType()
public byte fieldsCount()
fieldsCount in interface MessagefieldsCount in class IgfsCommunicationMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018