public class MetadataRequestMessage extends Object implements Message
DiscoveryCustomMessage messages are delivered to client nodes asynchronously
it is possible that server nodes are allowed to send to clients some BinaryObjects clients don't have metadata for.
When client detects obsolete metadata (by checking if current version of metadata has schemaId)
it requests up-to-date metadata using communication SPI.
API to make a request is provided by BinaryMetadataTransport.requestUpToDateMetadata(int) method.DIRECT_TYPE_SIZE| Constructor and Description |
|---|
MetadataRequestMessage()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
void |
onAckReceived()
Method called when ack message received.
|
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
String |
toString() |
int |
typeId() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public short directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Messagepublic void onAckReceived()
onAckReceived in interface Messagepublic int typeId()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018