public abstract class GridDhtAtomicAbstractUpdateRequest extends GridCacheMessage implements GridCacheDeployable
| Modifier and Type | Field and Description |
|---|---|
static int |
CACHE_MSG_IDX
Message index.
|
protected static int |
DHT_ATOMIC_OBSOLETE_NEAR_KEY_FLAG_MASK |
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.
|
addDepInfo, CACHE_MSG_INDEX_FIELD_NAME, cacheId, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEXDIRECT_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,
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,
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,
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) |
byte |
fieldsCount()
Gets fields count.
|
byte |
flags() |
abstract boolean |
forceTransformBackups() |
long |
futureId() |
abstract boolean |
hasKey(KeyCacheObject key) |
abstract Object[] |
invokeArguments() |
boolean |
keepBinary() |
abstract KeyCacheObject |
key(int idx) |
int |
lookupIndex()
Gets message lookup index.
|
IgniteLogger |
messageLogger(GridCacheSharedContext ctx) |
protected boolean |
near() |
protected void |
near(boolean near) |
abstract 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 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 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() |
String |
toString() |
abstract long |
ttl(int idx) |
abstract Long |
updateCounter(int updCntr) |
abstract CacheObject |
value(int idx) |
CacheWriteSynchronizationMode |
writeSynchronizationMode() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
GridCacheVersion |
writeVersion() |
appendFlag, cacheId, cacheId, classError, deployInfo, error, finishUnmarshal, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onClassError, partition, partitionExchangeMessage, prepare, prepareMarshal, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, topologyVersion, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparedirectTypeprotected static final int DHT_ATOMIC_OBSOLETE_NEAR_KEY_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
AffinityTopologyVersion topVer,
UUID subjId,
int taskNameHash,
boolean addDepInfo,
boolean keepBinary,
boolean skipStore)
cacheId - Cache ID.nodeId - Node ID.public UUID nearNodeId()
public int lookupIndex()
GridCacheMessage.MAX_CACHE_MSG_LOOKUP_INDEX.lookupIndex in class GridCacheMessagepublic UUID nodeId()
public final byte flags()
public final boolean keepBinary()
public final 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, @Nullable CacheObject prevVal, 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.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 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 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()
protected final boolean near()
True if near cache update request.protected final void near(boolean near)
near - Near cache update flag.protected final void setFlag(boolean flag,
int mask)
flag - Set or clear.mask - Mask.public byte fieldsCount()
fieldsCount in interface Messagepublic boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in interface MessagewriteTo in class GridCacheMessagebuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom in interface MessagereadFrom in class GridCacheMessagebuf - Byte buffer.reader - Reader.public String toString()
toString in class GridCacheMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017