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 IgfsCommunicationMessagemarsh - Marshaller.IgniteCheckedException - In case of error.public void finishUnmarshal(Marshaller marsh, @Nullable ClassLoader ldr) throws IgniteCheckedException
finishUnmarshal in class IgfsCommunicationMessagemarsh - Marshaller.ldr - Class loader.IgniteCheckedException - In case of error.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.1.0 Release Date : July 20 2017