public class GridDhtAtomicUpdateRequest 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 |
|---|
GridDhtAtomicUpdateRequest()
Empty constructor required by
Externalizable. |
GridDhtAtomicUpdateRequest(int cacheId,
UUID nodeId,
GridCacheVersion futVer,
GridCacheVersion writeVer,
CacheWriteSynchronizationMode syncMode,
AffinityTopologyVersion topVer,
boolean forceTransformBackups,
UUID subjId,
int taskNameHash,
Object[] invokeArgs)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNearWriteValue(KeyCacheObject key,
CacheObject val,
javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor,
long ttl,
long expireTime) |
void |
addWriteValue(KeyCacheObject key,
CacheObject val,
javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor,
long ttl,
long conflictExpireTime,
GridCacheVersion conflictVer) |
long |
conflictExpireTime(int idx) |
GridCacheVersion |
conflictVersion(int idx) |
byte |
directType()
Gets message type.
|
javax.cache.processor.EntryProcessor<Object,Object,Object> |
entryProcessor(int idx) |
byte |
fieldsCount()
Gets fields count.
|
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. |
boolean |
forceTransformBackups() |
GridCacheVersion |
futureVersion() |
Object[] |
invokeArguments() |
KeyCacheObject |
key(int idx) |
Collection<KeyCacheObject> |
keys() |
int |
lookupIndex()
Gets message lookup index.
|
javax.cache.processor.EntryProcessor<Object,Object,Object> |
nearEntryProcessor(int idx) |
long |
nearExpireTime(int idx) |
KeyCacheObject |
nearKey(int idx) |
int |
nearSize() |
long |
nearTtl(int idx) |
CacheObject |
nearValue(int idx) |
UUID |
nodeId() |
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.
|
int |
size() |
UUID |
subjectId() |
int |
taskNameHash() |
AffinityTopologyVersion |
topologyVersion()
Gets topology version or -1 in case of topology version is not required for this message.
|
String |
toString() |
long |
ttl(int idx) |
CacheObject |
value(int idx) |
CacheWriteSynchronizationMode |
writeSynchronizationMode() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
GridCacheVersion |
writeVersion() |
allowForStartup, cacheId, cacheId, classError, deployInfo, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, marshalBooleanLinkedMap, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onClassError, partitionExchangeMessage, prepare, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, transferExpiryPolicy, unmarshalBooleanLinkedMap, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridDhtAtomicUpdateRequest()
Externalizable.public GridDhtAtomicUpdateRequest(int cacheId,
UUID nodeId,
GridCacheVersion futVer,
GridCacheVersion writeVer,
CacheWriteSynchronizationMode syncMode,
@NotNull
AffinityTopologyVersion topVer,
boolean forceTransformBackups,
UUID subjId,
int taskNameHash,
Object[] invokeArgs)
cacheId - Cache ID.nodeId - Node ID.futVer - Future version.writeVer - Write version for cache values.invokeArgs - Optional arguments for entry processor.syncMode - Cache write synchronization mode.topVer - Topology version.forceTransformBackups - Force transform backups flag.subjId - Subject ID.taskNameHash - Task name hash code.public boolean forceTransformBackups()
public void addWriteValue(KeyCacheObject key, @Nullable CacheObject val, javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor, long ttl, long conflictExpireTime, @Nullable GridCacheVersion conflictVer)
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).public 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.public int lookupIndex()
GridCacheMessage.MAX_CACHE_MSG_LOOKUP_INDEX.lookupIndex in class GridCacheMessagepublic UUID nodeId()
public UUID subjectId()
public int taskNameHash()
public int size()
public int nearSize()
public GridCacheVersion futureVersion()
public GridCacheVersion writeVersion()
public CacheWriteSynchronizationMode writeSynchronizationMode()
public AffinityTopologyVersion topologyVersion()
GridCacheMessagetopologyVersion in class GridCacheMessagepublic Collection<KeyCacheObject> keys()
public KeyCacheObject key(int idx)
idx - Key index.public KeyCacheObject nearKey(int idx)
idx - Near key index.@Nullable public CacheObject value(int idx)
idx - Key index.@Nullable public javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor(int idx)
idx - Key index.@Nullable public CacheObject nearValue(int idx)
idx - Near key index.@Nullable public javax.cache.processor.EntryProcessor<Object,Object,Object> nearEntryProcessor(int idx)
idx - Key index.@Nullable public GridCacheVersion conflictVersion(int idx)
idx - Index.public long ttl(int idx)
idx - Index.public long nearTtl(int idx)
idx - Index.public long conflictExpireTime(int idx)
idx - Index.public long nearExpireTime(int idx)
idx - Index.@Nullable public Object[] invokeArguments()
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.1.0-incubating Release Date : May 20 2015