public abstract class GridNearAtomicAbstractUpdateRequest extends GridCacheIdMessage implements GridCacheDeployable
| Modifier and Type | Field and Description |
|---|---|
static int |
CACHE_MSG_IDX
Message index.
|
protected byte |
flags
Compressed boolean flags.
|
protected long |
futId
Future version.
|
protected UUID |
nodeId
Target node ID.
|
protected GridCacheOperation |
op
Update operation.
|
protected UUID |
subjId
Subject ID.
|
protected CacheWriteSynchronizationMode |
syncMode
Write synchronization mode.
|
protected int |
taskNameHash
Task name hash.
|
protected AffinityTopologyVersion |
topVer
Topology version.
|
cacheIdaddDepInfo, CACHE_MSG_INDEX_FIELD_NAME, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEXDIRECT_TYPE_SIZE| Modifier | Constructor and Description |
|---|---|
|
GridNearAtomicAbstractUpdateRequest() |
protected |
GridNearAtomicAbstractUpdateRequest(int cacheId,
UUID nodeId,
long futId,
AffinityTopologyVersion topVer,
CacheWriteSynchronizationMode syncMode,
GridCacheOperation op,
UUID subjId,
int taskNameHash,
byte flags,
boolean addDepInfo)
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 |
cleanup(boolean clearKeys)
Cleanup values.
|
abstract long |
conflictExpireTime(int idx) |
abstract long |
conflictTtl(int idx) |
abstract GridCacheVersion |
conflictVersion(int idx) |
abstract List<GridCacheVersion> |
conflictVersions() |
abstract javax.cache.processor.EntryProcessor<Object,Object,Object> |
entryProcessor(int idx) |
abstract javax.cache.expiry.ExpiryPolicy |
expiry() |
byte |
fieldsCount()
Gets fields count.
|
abstract CacheEntryPredicate[] |
filter() |
long |
futureId() |
abstract Object[] |
invokeArguments() |
boolean |
keepBinary() |
void |
keepBinary(boolean val) |
abstract KeyCacheObject |
key(int idx) |
abstract List<KeyCacheObject> |
keys() |
int |
lookupIndex()
Gets message lookup index.
|
IgniteLogger |
messageLogger(GridCacheSharedContext ctx) |
boolean |
nearCache() |
UUID |
nodeId() |
boolean |
onResponse(GridNearAtomicUpdateResponse res) |
GridCacheOperation |
operation() |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
boolean |
recovery() |
void |
recovery(boolean val) |
GridNearAtomicUpdateResponse |
response() |
boolean |
returnValue() |
void |
returnValue(boolean val) |
abstract int |
size() |
boolean |
skipStore() |
void |
skipStore(boolean val) |
UUID |
subjectId() |
int |
taskNameHash() |
AffinityTopologyVersion |
topologyVersion()
Gets topology version or -1 in case of topology version is not required for this message.
|
String |
toString() |
abstract CacheObject |
value(int idx) |
abstract List<?> |
values() |
CacheWriteSynchronizationMode |
writeSynchronizationMode() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
abstract CacheObject |
writeValue(int idx) |
cacheGroupMessage, cacheId, cacheId, handlerIdappendFlag, classError, deployInfo, error, finishUnmarshal, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onAckReceived, onClassError, partition, partitionExchangeMessage, prepare, prepareMarshal, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, prepareObject, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparedirectTypepublic static final int CACHE_MSG_IDX
protected UUID nodeId
protected long futId
protected AffinityTopologyVersion topVer
protected CacheWriteSynchronizationMode syncMode
protected GridCacheOperation op
protected UUID subjId
protected int taskNameHash
@GridToStringExclude protected byte flags
public GridNearAtomicAbstractUpdateRequest()
protected GridNearAtomicAbstractUpdateRequest(int cacheId,
UUID nodeId,
long futId,
@NotNull
AffinityTopologyVersion topVer,
CacheWriteSynchronizationMode syncMode,
GridCacheOperation op,
@Nullable
UUID subjId,
int taskNameHash,
byte flags,
boolean addDepInfo)
cacheId - Cache ID.nodeId - Node ID.futId - Future ID.topVer - Topology version.syncMode - Synchronization mode.op - Cache update operation.subjId - Subject ID.taskNameHash - Task name hash code.flags - Flags.addDepInfo - Deployment info flag.public boolean nearCache()
True if near cache is enabled on node initiated operation.public final AffinityTopologyVersion topologyVersion()
topologyVersion in class GridCacheMessagepublic final int lookupIndex()
GridCacheMessage.MAX_CACHE_MSG_LOOKUP_INDEX.lookupIndex in class GridCacheMessagepublic final boolean addDeploymentInfo()
addDeploymentInfo in class GridCacheMessagetrue or if deployment info must be added to the the message, false otherwise.public final IgniteLogger messageLogger(GridCacheSharedContext ctx)
messageLogger in class GridCacheMessagectx - Context.public int taskNameHash()
public GridCacheOperation operation()
public UUID subjectId()
public UUID nodeId()
public long futureId()
public final CacheWriteSynchronizationMode writeSynchronizationMode()
public boolean onResponse(GridNearAtomicUpdateResponse res)
res - Response.True if current response was null.@Nullable public GridNearAtomicUpdateResponse response()
public final boolean returnValue()
public final void returnValue(boolean val)
val - Return value flag.public final boolean skipStore()
public void skipStore(boolean val)
val - Skip store flag.public final boolean keepBinary()
public void keepBinary(boolean val)
val - Keep binary flag.public final boolean recovery()
public void recovery(boolean val)
val - Keep binary flag.public abstract javax.cache.expiry.ExpiryPolicy expiry()
@Nullable public abstract CacheEntryPredicate[] filter()
@Nullable public abstract Object[] invokeArguments()
public abstract List<KeyCacheObject> keys()
public abstract List<?> values()
public abstract CacheObject value(int idx)
idx - Key index.public abstract javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor(int idx)
idx - Key index.public abstract CacheObject writeValue(int idx)
idx - Index to get.@Nullable public abstract List<GridCacheVersion> conflictVersions()
@Nullable public abstract GridCacheVersion conflictVersion(int idx)
idx - Index.public abstract long conflictTtl(int idx)
idx - Index.public abstract long conflictExpireTime(int idx)
idx - Index.public abstract void cleanup(boolean clearKeys)
clearKeys - If true clears keys.public abstract int size()
public abstract KeyCacheObject key(int idx)
idx - Key index.public byte fieldsCount()
fieldsCount in interface MessagefieldsCount in class GridCacheIdMessagepublic boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in interface MessagewriteTo in class GridCacheIdMessagebuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom in interface MessagereadFrom in class GridCacheIdMessagebuf - Byte buffer.reader - Reader.public String toString()
toString in class GridCacheIdMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 2.1.0 Release Date : July 20 2017