public class GridNearAtomicUpdateRequest extends GridCacheMessage implements GridCacheDeployable
| Modifier and Type | Field and Description |
|---|---|
static int |
CACHE_MSG_IDX
Message index.
|
CACHE_MSG_INDEX_FIELD_NAME, cacheId, 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 clientReq)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addUpdateEntry(KeyCacheObject key,
Object val,
long conflictTtl,
long conflictExpireTime,
GridCacheVersion conflictVer,
boolean primary) |
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() |
List<KeyCacheObject> |
keys() |
int |
lookupIndex()
Gets message lookup index.
|
UUID |
nodeId() |
void |
nodeId(UUID nodeId) |
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.
|
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) |
allowForStartup, cacheId, cacheId, classError, deployInfo, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onClassError, partitionExchangeMessage, prepare, 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 clientReq)
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.clientReq - Client node request flag.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 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 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 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 byte directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Messagepublic String toString()
toString in class GridCacheMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 1.2.0-incubating Release Date : June 16 2015