public class GridDhtAtomicSingleUpdateRequest extends GridDhtAtomicAbstractUpdateRequest
| Modifier and Type | Field and Description |
|---|---|
protected KeyCacheObject |
key
Key to update.
|
protected CacheObject |
prevVal
Previous value.
|
protected long |
updateCntr
Partition.
|
protected CacheObject |
val
Value to update.
|
CACHE_MSG_IDX, DHT_ATOMIC_KEEP_BINARY_FLAG_MASK, DHT_ATOMIC_NEAR_FLAG_MASK, DHT_ATOMIC_OBSOLETE_NEAR_KEY_FLAG_MASK, DHT_ATOMIC_SKIP_STORE_FLAG_MASK, DHT_ATOMIC_TRANSFORM_OP_FLAG_MASK, flags, futId, nodeId, subjId, syncMode, taskNameHash, topVer, writeVercacheIdaddDepInfo, CACHE_MSG_INDEX_FIELD_NAME, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEXDIRECT_TYPE_SIZE| Constructor and Description |
|---|
GridDhtAtomicSingleUpdateRequest()
Empty constructor required by
Externalizable. |
| Modifier and Type | Method and Description |
|---|---|
void |
addNearWriteValue(KeyCacheObject key,
@Nullable CacheObject val,
javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor,
long ttl,
long expireTime) |
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 void |
cleanup()
Cleanup values not needed after message was sent.
|
long |
conflictExpireTime(int idx) |
@Nullable GridCacheVersion |
conflictVersion(int idx) |
short |
directType()
Gets message type.
|
@Nullable javax.cache.processor.EntryProcessor<Object,Object,Object> |
entryProcessor(int idx) |
byte |
fieldsCount()
Gets fields count.
|
void |
finishUnmarshal(GridCacheSharedContext ctx,
ClassLoader ldr)
This method is called after the message is deserialized and is responsible for
unmarshalling state marshalled in
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method. |
boolean |
forceTransformBackups() |
boolean |
hasKey(KeyCacheObject key) |
@Nullable Object[] |
invokeArguments() |
KeyCacheObject |
key(int idx) |
@Nullable javax.cache.processor.EntryProcessor<Object,Object,Object> |
nearEntryProcessor(int idx) |
long |
nearExpireTime(int idx) |
KeyCacheObject |
nearKey(int idx) |
int |
nearSize() |
long |
nearTtl(int idx) |
@Nullable CacheObject |
nearValue(int idx) |
KeyCacheObject |
obsoleteNearKey(int idx) |
int |
obsoleteNearKeysSize() |
int |
partition() |
void |
prepareMarshal(GridCacheSharedContext ctx)
This method is called before the whole message is serialized
and is responsible for pre-marshalling state.
|
@Nullable CacheObject |
previousValue(int idx) |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
int |
size() |
String |
toString() |
long |
ttl(int idx) |
Long |
updateCounter(int updCntr) |
@Nullable CacheObject |
value(int idx) |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
addDeploymentInfo, flags, futureId, keepBinary, lookupIndex, messageLogger, nearFutureId, nearNodeId, nodeId, onAckReceived, onResponse, setFlag, skipStore, subjectId, taskNameHash, topologyVersion, transformOperation, writeSynchronizationMode, writeVersioncacheGroupMessage, cacheId, cacheId, handlerIdappendFlag, classError, deployInfo, error, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lastAffinityChangedTopologyVersion, lastAffinityChangedTopologyVersion, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onClassError, partitionExchangeMessage, prepare, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, prepareObject, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, prepare@GridToStringInclude protected KeyCacheObject key
@GridToStringInclude protected CacheObject val
@GridToStringInclude protected CacheObject prevVal
protected long updateCntr
public GridDhtAtomicSingleUpdateRequest()
Externalizable.public 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)
addWriteValue in class GridDhtAtomicAbstractUpdateRequestkey - 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 void addNearWriteValue(KeyCacheObject key, @Nullable @Nullable CacheObject val, javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor, long ttl, long expireTime)
addNearWriteValue in class GridDhtAtomicAbstractUpdateRequestkey - Key to add.val - Value, null if should be removed.entryProcessor - Entry processor.ttl - TTL.expireTime - Expire time.public boolean forceTransformBackups()
forceTransformBackups in class GridDhtAtomicAbstractUpdateRequestpublic int size()
size in class GridDhtAtomicAbstractUpdateRequestpublic int nearSize()
nearSize in class GridDhtAtomicAbstractUpdateRequestpublic boolean hasKey(KeyCacheObject key)
hasKey in class GridDhtAtomicAbstractUpdateRequestkey - Key to check.true if request keys contain key.public KeyCacheObject key(int idx)
key in class GridDhtAtomicAbstractUpdateRequestidx - Key index.public int obsoleteNearKeysSize()
obsoleteNearKeysSize in class GridDhtAtomicAbstractUpdateRequestpublic KeyCacheObject obsoleteNearKey(int idx)
obsoleteNearKey in class GridDhtAtomicAbstractUpdateRequestidx - Obsolete near cache key index.public int partition()
partition in class GridCacheMessage-1 if it cannot be determined.public Long updateCounter(int updCntr)
updateCounter in class GridDhtAtomicAbstractUpdateRequestupdCntr - Update counter.public KeyCacheObject nearKey(int idx)
nearKey in class GridDhtAtomicAbstractUpdateRequestidx - Near key index.@Nullable public @Nullable CacheObject value(int idx)
value in class GridDhtAtomicAbstractUpdateRequestidx - Key index.@Nullable public @Nullable CacheObject previousValue(int idx)
previousValue in class GridDhtAtomicAbstractUpdateRequestidx - Key index.@Nullable public @Nullable CacheObject nearValue(int idx)
nearValue in class GridDhtAtomicAbstractUpdateRequestidx - Near key index.@Nullable public @Nullable javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor(int idx)
entryProcessor in class GridDhtAtomicAbstractUpdateRequestidx - Key index.@Nullable public @Nullable javax.cache.processor.EntryProcessor<Object,Object,Object> nearEntryProcessor(int idx)
nearEntryProcessor in class GridDhtAtomicAbstractUpdateRequestidx - Key index.@Nullable public @Nullable GridCacheVersion conflictVersion(int idx)
conflictVersion in class GridDhtAtomicAbstractUpdateRequestidx - Index.public long ttl(int idx)
ttl in class GridDhtAtomicAbstractUpdateRequestidx - Index.public long nearTtl(int idx)
nearTtl in class GridDhtAtomicAbstractUpdateRequestidx - Index.public long conflictExpireTime(int idx)
conflictExpireTime in class GridDhtAtomicAbstractUpdateRequestidx - Index.public long nearExpireTime(int idx)
nearExpireTime in class GridDhtAtomicAbstractUpdateRequestidx - Index.@Nullable public @Nullable Object[] invokeArguments()
invokeArguments in class GridDhtAtomicAbstractUpdateRequestpublic void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException
prepareMarshal in class GridCacheMessagectx - Cache context.IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridCacheMessagectx - Context.ldr - Class loader.IgniteCheckedException - If failed.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in interface MessagewriteTo in class GridDhtAtomicAbstractUpdateRequestbuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom in interface MessagereadFrom in class GridDhtAtomicAbstractUpdateRequestbuf - Byte buffer.reader - Reader.protected void cleanup()
cleanup in class GridDhtAtomicAbstractUpdateRequestpublic short directType()
public byte fieldsCount()
fieldsCount in interface MessagefieldsCount in class GridDhtAtomicAbstractUpdateRequestpublic String toString()
toString in class GridDhtAtomicAbstractUpdateRequest
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020