public abstract class GridDhtPartitionsAbstractMessage extends GridCacheMessage
Modifier and Type | Field and Description |
---|---|
protected static byte |
COMPRESSED_FLAG_MASK |
addDepInfo, CACHE_MSG_INDEX_FIELD_NAME, cacheId, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEX
DIRECT_TYPE_SIZE
Modifier | Constructor and Description |
---|---|
protected |
GridDhtPartitionsAbstractMessage()
Required by
Externalizable . |
Modifier and Type | Method and Description |
---|---|
boolean |
addDeploymentInfo()
Deployment enabled flag indicates whether deployment info has to be added to this message.
|
protected boolean |
compressed() |
protected void |
compressed(boolean compressed) |
GridDhtPartitionExchangeId |
exchangeId() |
GridCacheVersion |
lastVersion() |
int |
partition() |
boolean |
partitionExchangeMessage() |
abstract Map<Integer,T2<Long,Long>> |
partitionUpdateCounters(int cacheId) |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
appendFlag, cacheId, cacheId, classError, deployInfo, error, finishUnmarshal, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, messageLogger, nextIndexId, onAckReceived, onClassError, prepare, prepareMarshal, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, topologyVersion, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTx
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
directType, fieldsCount
protected static final byte COMPRESSED_FLAG_MASK
protected GridDhtPartitionsAbstractMessage()
Externalizable
.public int partition()
partition
in class GridCacheMessage
-1
if it cannot be determined.public boolean addDeploymentInfo()
addDeploymentInfo
in class GridCacheMessage
true
or if deployment info must be added to the the message, false
otherwise.public boolean partitionExchangeMessage()
partitionExchangeMessage
in class GridCacheMessage
True
if this message is partition exchange message.@Nullable public GridDhtPartitionExchangeId exchangeId()
Null
if message doesn't belong to exchange process.public abstract Map<Integer,T2<Long,Long>> partitionUpdateCounters(int cacheId)
cacheId
- Cache ID.@Nullable public GridCacheVersion lastVersion()
protected final boolean compressed()
True
if message data is compressed.protected final void compressed(boolean compressed)
compressed
- True
if message data is compressed.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo
in interface Message
writeTo
in class GridCacheMessage
buf
- Byte buffer.writer
- Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom
in interface Message
readFrom
in class GridCacheMessage
buf
- Byte buffer.reader
- Reader.public String toString()
toString
in class GridCacheMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017