public class GridNearAtomicUpdateRequest extends GridCacheMessage implements GridCacheDeployable
| Modifier and Type | Field and Description |
|---|---|
static int |
CACHE_MSG_IDX
Message index.
|
addDepInfo, CACHE_MSG_INDEX_FIELD_NAME, cacheId, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEX| Constructor and Description |
|---|
GridNearAtomicUpdateRequest()
Empty constructor required by
Externalizable. |
GridNearAtomicUpdateRequest(int cacheId,
UUID nodeId,
GridCacheVersion futVer,
boolean fastMap,
GridCacheVersion updateVer,
AffinityTopologyVersion topVer,
boolean topLocked,
CacheWriteSynchronizationMode syncMode,
GridCacheOperation op,
boolean retval,
javax.cache.expiry.ExpiryPolicy expiryPlc,
Object[] invokeArgs,
CacheEntryPredicate[] filter,
UUID subjId,
int taskNameHash,
boolean skipStore,
boolean keepBinary,
boolean clientReq,
boolean addDepInfo,
int maxEntryCnt)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDeploymentInfo()
Deployment enabled flag indicates whether deployment info has to be added to this message.
|
void |
addUpdateEntry(KeyCacheObject key,
Object val,
long conflictTtl,
long conflictExpireTime,
GridCacheVersion conflictVer,
boolean primary) |
void |
cleanup(boolean clearKeys)
Cleanup values.
|
boolean |
clientRequest() |
long |
conflictExpireTime(int idx) |
long |
conflictTtl(int idx) |
GridCacheVersion |
conflictVersion(int idx) |
List<GridCacheVersion> |
conflictVersions() |
byte |
directType()
Gets message type.
|
javax.cache.processor.EntryProcessor<Object,Object,Object> |
entryProcessor(int idx) |
javax.cache.expiry.ExpiryPolicy |
expiry() |
boolean |
fastMap() |
byte |
fieldsCount()
Gets fields count.
|
CacheEntryPredicate[] |
filter() |
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. |
GridCacheVersion |
futureVersion() |
boolean |
hasPrimary() |
Object[] |
invokeArguments() |
boolean |
keepBinary() |
List<KeyCacheObject> |
keys() |
int |
lookupIndex()
Gets message lookup index.
|
UUID |
nodeId() |
void |
nodeId(UUID nodeId) |
boolean |
onResponse(GridNearAtomicUpdateResponse res) |
GridCacheOperation |
operation() |
void |
prepareMarshal(GridCacheSharedContext ctx)
This method is called before the whole message is serialized
and is responsible for pre-marshalling state.
|
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
GridNearAtomicUpdateResponse |
response() |
boolean |
returnValue() |
boolean |
skipStore() |
UUID |
subjectId() |
int |
taskNameHash() |
boolean |
topologyLocked() |
AffinityTopologyVersion |
topologyVersion()
Gets topology version or -1 in case of topology version is not required for this message.
|
String |
toString() |
GridCacheVersion |
updateVersion() |
CacheObject |
value(int idx) |
List<?> |
values() |
CacheWriteSynchronizationMode |
writeSynchronizationMode() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
CacheObject |
writeValue(int idx) |
cacheId, cacheId, classError, deployInfo, error, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onAckReceived, onClassError, partitionExchangeMessage, prepare, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridNearAtomicUpdateRequest()
Externalizable.public GridNearAtomicUpdateRequest(int cacheId,
UUID nodeId,
GridCacheVersion futVer,
boolean fastMap,
@Nullable
GridCacheVersion updateVer,
@NotNull
AffinityTopologyVersion topVer,
boolean topLocked,
CacheWriteSynchronizationMode syncMode,
GridCacheOperation op,
boolean retval,
@Nullable
javax.cache.expiry.ExpiryPolicy expiryPlc,
@Nullable
Object[] invokeArgs,
@Nullable
CacheEntryPredicate[] filter,
@Nullable
UUID subjId,
int taskNameHash,
boolean skipStore,
boolean keepBinary,
boolean clientReq,
boolean addDepInfo,
int maxEntryCnt)
cacheId - Cache ID.nodeId - Node ID.futVer - Future version.fastMap - Fast map scheme flag.updateVer - Update version set if fast map is performed.topVer - Topology version.topLocked - Topology locked flag.syncMode - Synchronization mode.op - Cache update operation.retval - Return value required flag.expiryPlc - Expiry policy.invokeArgs - Optional arguments for entry processor.filter - Optional filter for atomic check.subjId - Subject ID.taskNameHash - Task name hash code.skipStore - Skip write-through to a persistent storage.keepBinary - Keep binary flag.clientReq - Client node request flag.addDepInfo - Deployment info flag.maxEntryCnt - Maximum entries count.public int lookupIndex()
GridCacheMessage.MAX_CACHE_MSG_LOOKUP_INDEX.lookupIndex in class GridCacheMessagepublic UUID nodeId()
public void nodeId(UUID nodeId)
nodeId - Node ID.public UUID subjectId()
public int taskNameHash()
public GridCacheVersion futureVersion()
public boolean fastMap()
public GridCacheVersion updateVersion()
public AffinityTopologyVersion topologyVersion()
GridCacheMessagetopologyVersion in class GridCacheMessagepublic boolean topologyLocked()
public boolean clientRequest()
True if request sent from client node.public CacheWriteSynchronizationMode writeSynchronizationMode()
public javax.cache.expiry.ExpiryPolicy expiry()
public boolean returnValue()
@Nullable public CacheEntryPredicate[] filter()
public boolean skipStore()
public boolean keepBinary()
public void addUpdateEntry(KeyCacheObject key, @Nullable Object val, long conflictTtl, long conflictExpireTime, @Nullable GridCacheVersion conflictVer, boolean primary)
key - Key to add.val - Optional update value.conflictTtl - Conflict TTL (optional).conflictExpireTime - Conflict expire time (optional).conflictVer - Conflict version (optional).primary - If given key is primary on this mapping.public List<KeyCacheObject> keys()
public List<?> values()
public GridCacheOperation operation()
@Nullable public Object[] invokeArguments()
public CacheObject value(int idx)
idx - Key index.public javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor(int idx)
idx - Key index.public CacheObject writeValue(int idx)
idx - Index to get.@Nullable public List<GridCacheVersion> conflictVersions()
@Nullable public GridCacheVersion conflictVersion(int idx)
idx - Index.public long conflictTtl(int idx)
idx - Index.public long conflictExpireTime(int idx)
idx - Index.public boolean hasPrimary()
public boolean onResponse(GridNearAtomicUpdateResponse res)
res - Response.True if current response was null.@Nullable public GridNearAtomicUpdateResponse response()
public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException
prepareMarshal in class GridCacheMessagectx - 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 addDeploymentInfo()
addDeploymentInfo in class GridCacheMessagetrue or if deployment info must be added to the the message, false otherwise.public 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 void cleanup(boolean clearKeys)
clearKeys - If true clears keys.public byte directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Messagepublic String toString()
toString in class GridCacheMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 1.6.0 Release Date : May 18 2016