public abstract class GridDhtAtomicAbstractUpdateRequest extends GridCacheMessage implements GridCacheDeployable
| Modifier and Type | Field and Description |
|---|---|
static int |
CACHE_MSG_IDX
Message index.
|
protected UUID |
nodeId
Node ID.
|
addDepInfo, CACHE_MSG_INDEX_FIELD_NAME, cacheId, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEX| Modifier | Constructor and Description |
|---|---|
protected |
GridDhtAtomicAbstractUpdateRequest()
Empty constructor required by
Externalizable. |
protected |
GridDhtAtomicAbstractUpdateRequest(int cacheId,
UUID nodeId)
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,
CacheObject val,
javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor,
long ttl,
long expireTime) |
abstract void |
addWriteValue(KeyCacheObject key,
CacheObject val,
javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor,
long ttl,
long conflictExpireTime,
GridCacheVersion conflictVer,
boolean addPrevVal,
int partId,
CacheObject prevVal,
Long updateCntr) |
protected abstract void |
cleanup()
Cleanup values not needed after message was sent.
|
abstract long |
conflictExpireTime(int idx) |
abstract GridCacheVersion |
conflictVersion(int idx) |
abstract javax.cache.processor.EntryProcessor<Object,Object,Object> |
entryProcessor(int idx) |
abstract boolean |
forceTransformBackups() |
abstract GridCacheVersion |
futureVersion() |
abstract boolean |
hasKey(KeyCacheObject key) |
abstract Object[] |
invokeArguments() |
abstract boolean |
keepBinary() |
abstract KeyCacheObject |
key(int idx) |
int |
lookupIndex()
Gets message lookup index.
|
IgniteLogger |
messageLogger(GridCacheSharedContext ctx) |
abstract javax.cache.processor.EntryProcessor<Object,Object,Object> |
nearEntryProcessor(int idx) |
abstract long |
nearExpireTime(int idx) |
abstract KeyCacheObject |
nearKey(int idx) |
abstract int |
nearSize() |
abstract long |
nearTtl(int idx) |
abstract CacheObject |
nearValue(int idx) |
UUID |
nodeId() |
void |
onAckReceived()
Method called when ack message received.
|
boolean |
onResponse() |
abstract int |
partitionId(int idx) |
abstract CacheObject |
previousValue(int idx) |
abstract int |
size() |
abstract boolean |
skipStore() |
abstract UUID |
subjectId() |
abstract int |
taskNameHash() |
abstract long |
ttl(int idx) |
abstract Long |
updateCounter(int updCntr) |
abstract CacheObject |
value(int idx) |
abstract CacheWriteSynchronizationMode |
writeSynchronizationMode() |
abstract GridCacheVersion |
writeVersion() |
cacheId, cacheId, classError, deployInfo, error, finishUnmarshal, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onClassError, partitionExchangeMessage, prepare, prepareMarshal, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, readFrom, topologyVersion, toString, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTx, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparedirectType, fieldsCountpublic static final int CACHE_MSG_IDX
protected UUID nodeId
protected GridDhtAtomicAbstractUpdateRequest()
Externalizable.protected GridDhtAtomicAbstractUpdateRequest(int cacheId,
UUID nodeId)
cacheId - Cache ID.nodeId - Node ID.public int lookupIndex()
GridCacheMessage.MAX_CACHE_MSG_LOOKUP_INDEX.lookupIndex in class GridCacheMessagepublic UUID nodeId()
public abstract boolean keepBinary()
public abstract boolean skipStore()
public boolean onResponse()
True if on response flag changed.public boolean addDeploymentInfo()
addDeploymentInfo in class GridCacheMessagetrue 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 GridCacheMessagectx - Context.public void onAckReceived()
onAckReceived in interface MessageonAckReceived in class GridCacheMessagepublic 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, int partId, @Nullable CacheObject prevVal, @Nullable Long updateCntr)
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.partId - Partition.prevVal - Previous value.updateCntr - Update counter.public abstract void addNearWriteValue(KeyCacheObject key, @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 abstract UUID subjectId()
public abstract int taskNameHash()
public abstract GridCacheVersion futureVersion()
public abstract GridCacheVersion writeVersion()
public abstract 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 partitionId(int idx)
idx - Partition index.public abstract Long updateCounter(int updCntr)
updCntr - Update counter.public abstract KeyCacheObject nearKey(int idx)
idx - Near key index.@Nullable public abstract CacheObject value(int idx)
idx - Key index.@Nullable public abstract CacheObject previousValue(int idx)
idx - Key index.@Nullable public abstract javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor(int idx)
idx - Key index.@Nullable public abstract CacheObject nearValue(int idx)
idx - Near key index.@Nullable public abstract javax.cache.processor.EntryProcessor<Object,Object,Object> nearEntryProcessor(int idx)
idx - Key index.@Nullable public abstract 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 Object[] invokeArguments()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.8.0 Release Date : December 5 2016