public abstract class GridDhtAtomicAbstractUpdateRequest extends GridCacheIdMessage implements GridCacheDeployable
Modifier and Type | Field and Description |
---|---|
static int |
CACHE_MSG_IDX
Message index.
|
protected static int |
DHT_ATOMIC_KEEP_BINARY_FLAG_MASK
Keep binary flag.
|
protected static int |
DHT_ATOMIC_NEAR_FLAG_MASK
Near cache key flag.
|
protected static int |
DHT_ATOMIC_OBSOLETE_NEAR_KEY_FLAG_MASK |
protected static int |
DHT_ATOMIC_SKIP_STORE_FLAG_MASK
Skip store flag bit mask.
|
protected static int |
DHT_ATOMIC_TRANSFORM_OP_FLAG_MASK
Flag indicating transformation operation was performed.
|
protected byte |
flags
Additional flags.
|
protected long |
futId
Future ID on primary.
|
protected UUID |
nodeId
Node ID.
|
protected UUID |
subjId
Subject ID.
|
protected CacheWriteSynchronizationMode |
syncMode
Write synchronization mode.
|
protected int |
taskNameHash
Task name hash.
|
protected AffinityTopologyVersion |
topVer
Topology version.
|
protected GridCacheVersion |
writeVer
Write version.
|
cacheId
addDepInfo, CACHE_MSG_INDEX_FIELD_NAME, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEX
DIRECT_TYPE_SIZE
Modifier | Constructor and Description |
---|---|
protected |
GridDhtAtomicAbstractUpdateRequest()
Empty constructor required by
Externalizable . |
protected |
GridDhtAtomicAbstractUpdateRequest(int cacheId,
UUID nodeId,
long futId,
GridCacheVersion writeVer,
CacheWriteSynchronizationMode syncMode,
@NotNull AffinityTopologyVersion topVer,
UUID subjId,
int taskNameHash,
boolean addDepInfo,
boolean keepBinary,
boolean skipStore)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addDeploymentInfo()
Deployment enabled flag indicates whether deployment info has to be added to this message.
|
abstract void |
addNearWriteValue(KeyCacheObject key,
@Nullable CacheObject val,
javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor,
long ttl,
long expireTime) |
abstract void |
addWriteValue(KeyCacheObject key,
@Nullable CacheObject val,
javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor,
long ttl,
long conflictExpireTime,
@Nullable GridCacheVersion conflictVer,
boolean addPrevVal,
@Nullable CacheObject prevVal,
long updateCntr,
GridCacheOperation cacheOp) |
protected abstract void |
cleanup()
Cleanup values not needed after message was sent.
|
abstract long |
conflictExpireTime(int idx) |
abstract @Nullable GridCacheVersion |
conflictVersion(int idx) |
abstract @Nullable javax.cache.processor.EntryProcessor<Object,Object,Object> |
entryProcessor(int idx) |
byte |
fieldsCount()
Gets fields count.
|
byte |
flags() |
abstract boolean |
forceTransformBackups() |
long |
futureId() |
abstract boolean |
hasKey(KeyCacheObject key) |
abstract @Nullable Object[] |
invokeArguments() |
boolean |
keepBinary() |
abstract KeyCacheObject |
key(int idx) |
int |
lookupIndex()
Gets message lookup index.
|
IgniteLogger |
messageLogger(GridCacheSharedContext ctx) |
abstract @Nullable javax.cache.processor.EntryProcessor<Object,Object,Object> |
nearEntryProcessor(int idx) |
abstract long |
nearExpireTime(int idx) |
long |
nearFutureId() |
abstract KeyCacheObject |
nearKey(int idx) |
UUID |
nearNodeId() |
abstract int |
nearSize() |
abstract long |
nearTtl(int idx) |
abstract @Nullable CacheObject |
nearValue(int idx) |
UUID |
nodeId() |
abstract KeyCacheObject |
obsoleteNearKey(int idx) |
abstract int |
obsoleteNearKeysSize() |
void |
onAckReceived()
Method called when ack message received.
|
boolean |
onResponse() |
abstract @Nullable CacheObject |
previousValue(int idx) |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
protected void |
setFlag(boolean flag,
int mask)
Sets flag mask.
|
abstract int |
size() |
boolean |
skipStore() |
UUID |
subjectId() |
int |
taskNameHash() |
AffinityTopologyVersion |
topologyVersion()
Gets topology version or -1 in case of topology version is not required for this message.
|
String |
toString() |
boolean |
transformOperation() |
abstract long |
ttl(int idx) |
abstract Long |
updateCounter(int updCntr) |
abstract @Nullable CacheObject |
value(int idx) |
CacheWriteSynchronizationMode |
writeSynchronizationMode() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
GridCacheVersion |
writeVersion() |
cacheGroupMessage, cacheId, cacheId, handlerId
appendFlag, classError, deployInfo, error, finishUnmarshal, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lastAffinityChangedTopologyVersion, lastAffinityChangedTopologyVersion, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onClassError, partition, partitionExchangeMessage, prepare, prepareMarshal, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, prepareObject, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTx
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
deployInfo, prepare
directType
protected static final int DHT_ATOMIC_SKIP_STORE_FLAG_MASK
protected static final int DHT_ATOMIC_KEEP_BINARY_FLAG_MASK
protected static final int DHT_ATOMIC_NEAR_FLAG_MASK
protected static final int DHT_ATOMIC_OBSOLETE_NEAR_KEY_FLAG_MASK
protected static final int DHT_ATOMIC_TRANSFORM_OP_FLAG_MASK
public static final int CACHE_MSG_IDX
protected long futId
protected GridCacheVersion writeVer
protected CacheWriteSynchronizationMode syncMode
protected AffinityTopologyVersion topVer
protected UUID subjId
protected int taskNameHash
protected UUID nodeId
protected byte flags
protected GridDhtAtomicAbstractUpdateRequest()
Externalizable
.protected GridDhtAtomicAbstractUpdateRequest(int cacheId, UUID nodeId, long futId, GridCacheVersion writeVer, CacheWriteSynchronizationMode syncMode, @NotNull @NotNull AffinityTopologyVersion topVer, UUID subjId, int taskNameHash, boolean addDepInfo, boolean keepBinary, boolean skipStore)
cacheId
- Cache ID.nodeId
- Node ID.public final AffinityTopologyVersion topologyVersion()
topologyVersion
in class GridCacheMessage
public UUID nearNodeId()
public int lookupIndex()
GridCacheMessage.MAX_CACHE_MSG_LOOKUP_INDEX
.lookupIndex
in class GridCacheMessage
public UUID nodeId()
public final byte flags()
public final boolean keepBinary()
public final boolean skipStore()
public final boolean transformOperation()
True
if transformation operation was performed.public boolean onResponse()
True
if on response flag changed.public boolean addDeploymentInfo()
addDeploymentInfo
in class GridCacheMessage
true
or if deployment info must be added to the the message, false
otherwise.public abstract boolean forceTransformBackups()
public IgniteLogger messageLogger(GridCacheSharedContext ctx)
messageLogger
in class GridCacheMessage
ctx
- Context.public void onAckReceived()
onAckReceived
in interface Message
onAckReceived
in class GridCacheMessage
public abstract void addWriteValue(KeyCacheObject key, @Nullable @Nullable CacheObject val, javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor, long ttl, long conflictExpireTime, @Nullable @Nullable GridCacheVersion conflictVer, boolean addPrevVal, @Nullable @Nullable CacheObject prevVal, long updateCntr, GridCacheOperation cacheOp)
key
- Key to add.val
- Value, null
if should be removed.entryProcessor
- Entry processor.ttl
- TTL (optional).conflictExpireTime
- Conflict expire time (optional).conflictVer
- Conflict version (optional).addPrevVal
- If true
adds previous value.prevVal
- Previous value.updateCntr
- Update counter.cacheOp
- Corresponding cache operation.public abstract void addNearWriteValue(KeyCacheObject key, @Nullable @Nullable CacheObject val, javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor, long ttl, long expireTime)
key
- Key to add.val
- Value, null
if should be removed.entryProcessor
- Entry processor.ttl
- TTL.expireTime
- Expire time.protected abstract void cleanup()
public final UUID subjectId()
public final int taskNameHash()
public final long futureId()
public final long nearFutureId()
public final GridCacheVersion writeVersion()
public final CacheWriteSynchronizationMode writeSynchronizationMode()
public abstract int size()
public abstract int nearSize()
public abstract boolean hasKey(KeyCacheObject key)
key
- Key to check.true
if request keys contain key.public abstract KeyCacheObject key(int idx)
idx
- Key index.public abstract int obsoleteNearKeysSize()
public abstract KeyCacheObject obsoleteNearKey(int idx)
idx
- Obsolete near cache key index.public abstract Long updateCounter(int updCntr)
updCntr
- Update counter.public abstract KeyCacheObject nearKey(int idx)
idx
- Near key index.@Nullable public abstract @Nullable CacheObject value(int idx)
idx
- Key index.@Nullable public abstract @Nullable CacheObject previousValue(int idx)
idx
- Key index.@Nullable public abstract @Nullable javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor(int idx)
idx
- Key index.@Nullable public abstract @Nullable CacheObject nearValue(int idx)
idx
- Near key index.@Nullable public abstract @Nullable javax.cache.processor.EntryProcessor<Object,Object,Object> nearEntryProcessor(int idx)
idx
- Key index.@Nullable public abstract @Nullable GridCacheVersion conflictVersion(int idx)
idx
- Index.public abstract long ttl(int idx)
idx
- Index.public abstract long nearTtl(int idx)
idx
- Index.public abstract long conflictExpireTime(int idx)
idx
- Index.public abstract long nearExpireTime(int idx)
idx
- Index.@Nullable public abstract @Nullable Object[] invokeArguments()
protected final void setFlag(boolean flag, int mask)
flag
- Set or clear.mask
- Mask.public byte fieldsCount()
fieldsCount
in interface Message
fieldsCount
in class GridCacheIdMessage
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo
in interface Message
writeTo
in class GridCacheIdMessage
buf
- Byte buffer.writer
- Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom
in interface Message
readFrom
in class GridCacheIdMessage
buf
- Byte buffer.reader
- Reader.public String toString()
toString
in class GridCacheIdMessage
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021