public class IgfsAckMessage extends IgfsCommunicationMessage
DIRECT_TYPE_SIZE
Constructor and Description |
---|
IgfsAckMessage()
Empty constructor required by
Externalizable . |
IgfsAckMessage(IgniteUuid fileId,
long id,
IgniteCheckedException err) |
Modifier and Type | Method and Description |
---|---|
short |
directType()
Gets message type.
|
IgniteCheckedException |
error() |
byte |
fieldsCount()
Gets fields count.
|
IgniteUuid |
fileId() |
void |
finishUnmarshal(Marshaller marsh,
ClassLoader ldr) |
long |
id() |
void |
onAckReceived()
Method called when ack message received.
|
void |
prepareMarshal(Marshaller marsh) |
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.
|
public IgfsAckMessage()
Externalizable
.public IgfsAckMessage(IgniteUuid fileId, long id, @Nullable IgniteCheckedException err)
fileId
- File ID.id
- Request ID.err
- Error.public IgniteUuid fileId()
public long id()
public IgniteCheckedException error()
public void onAckReceived()
public void prepareMarshal(Marshaller marsh) throws IgniteCheckedException
prepareMarshal
in class IgfsCommunicationMessage
marsh
- Marshaller.IgniteCheckedException
- In case of error.public void finishUnmarshal(Marshaller marsh, @Nullable ClassLoader ldr) throws IgniteCheckedException
finishUnmarshal
in class IgfsCommunicationMessage
marsh
- Marshaller.ldr
- Class loader.IgniteCheckedException
- In case of error.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo
in interface Message
writeTo
in class IgfsCommunicationMessage
buf
- Byte buffer.writer
- Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom
in interface Message
readFrom
in class IgfsCommunicationMessage
buf
- Byte buffer.reader
- Reader.public short directType()
public byte fieldsCount()
fieldsCount
in interface Message
fieldsCount
in class IgfsCommunicationMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017