public class GridNearAtomicUpdateRequest<K,V> extends GridCacheMessage<K,V> implements GridCacheDeployable
MessageAdapter.Type| Modifier and Type | Field and Description |
|---|---|
static int |
CACHE_MSG_IDX
Message index.
|
CACHE_MSG_INDEX_FIELD_NAME, cacheId, MAX_CACHE_MSG_LOOKUP_INDEXreader, readState| Constructor and Description |
|---|
GridNearAtomicUpdateRequest()
Empty constructor required by
Externalizable. |
GridNearAtomicUpdateRequest(int cacheId,
UUID nodeId,
GridCacheVersion futVer,
boolean fastMap,
GridCacheVersion updateVer,
long topVer,
CacheWriteSynchronizationMode syncMode,
GridCacheOperation op,
boolean retval,
boolean forceTransformBackups,
javax.cache.expiry.ExpiryPolicy expiryPlc,
Object[] invokeArgs,
IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter,
UUID subjId,
int taskNameHash)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addUpdateEntry(K key,
Object val,
long drTtl,
long drExpireTime,
GridCacheVersion drVer,
boolean primary) |
byte |
directType()
Gets message type.
|
long |
drExpireTime(int idx) |
GridLongList |
drExpireTimes() |
long |
drTtl(int idx) |
GridLongList |
drTtls() |
GridCacheVersion |
drVersion(int idx) |
List<GridCacheVersion> |
drVersions() |
javax.cache.processor.EntryProcessor<K,V,?> |
entryProcessor(int idx) |
javax.cache.expiry.ExpiryPolicy |
expiry() |
boolean |
fastMap() |
IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] |
filter() |
void |
finishUnmarshal(GridCacheSharedContext<K,V> 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() |
void |
forceTransformBackups(boolean forceTransformBackups) |
GridCacheVersion |
futureVersion() |
boolean |
hasPrimary() |
Object[] |
invokeArguments() |
List<K> |
keys() |
int |
lookupIndex()
Gets message lookup index.
|
UUID |
nodeId() |
void |
nodeId(UUID nodeId) |
GridCacheOperation |
operation() |
void |
prepareMarshal(GridCacheSharedContext<K,V> ctx)
This method is called before the whole message is serialized
and is responsible for pre-marshalling state.
|
boolean |
readFrom(ByteBuffer buf)
Reads this message from provided byte buffer.
|
boolean |
returnValue() |
UUID |
subjectId() |
int |
taskNameHash() |
long |
topologyVersion()
Gets topology version or -1 in case of topology version is not required for this message.
|
String |
toString() |
GridCacheVersion |
updateVersion() |
V |
value(int idx) |
byte[] |
valueBytes(int idx) |
List<Object> |
values() |
CacheWriteSynchronizationMode |
writeSynchronizationMode() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
Object |
writeValue(int idx) |
allowForStartup, cacheId, cacheId, classError, deployInfo, ignoreClassErrors, marshalBooleanLinkedMap, marshalCollection, marshalFilter, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, marshalValuesCollection, messageId, nextIndexId, onClassError, prepare, prepareFilter, prepareObject, prepareObjects, transactional, transferExpiryPolicy, unmarshalBooleanLinkedMap, unmarshalCollection, unmarshalFilter, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTx, unmarshalValueBytesCollectionsetReader, skipRecoveryclone, 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,
long topVer,
CacheWriteSynchronizationMode syncMode,
GridCacheOperation op,
boolean retval,
boolean forceTransformBackups,
@Nullable
javax.cache.expiry.ExpiryPolicy expiryPlc,
@Nullable
Object[] invokeArgs,
@Nullable
IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter,
@Nullable
UUID subjId,
int taskNameHash)
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.syncMode - Synchronization mode.op - Cache update operation.retval - Return value required flag.forceTransformBackups - Force transform backups flag.expiryPlc - Expiry policy.invokeArgs - Optional arguments for entry processor.filter - Optional filter for atomic check.subjId - Subject ID.taskNameHash - Task name hash code.public int lookupIndex()
GridCacheMessage.MAX_CACHE_MSG_LOOKUP_INDEX.lookupIndex in class GridCacheMessage<K,V>public 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 long topologyVersion()
GridCacheMessagetopologyVersion in class GridCacheMessage<K,V>public CacheWriteSynchronizationMode writeSynchronizationMode()
public javax.cache.expiry.ExpiryPolicy expiry()
public boolean returnValue()
@Nullable public IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter()
public void addUpdateEntry(K key, @Nullable Object val, long drTtl, long drExpireTime, @Nullable GridCacheVersion drVer, boolean primary)
key - Key to add.val - Optional update value.drTtl - DR TTL (optional).drExpireTime - DR expire time (optional).drVer - DR version (optional).primary - If given key is primary on this mapping.public GridCacheOperation operation()
@Nullable public Object[] invokeArguments()
public V value(int idx)
idx - Key index.public javax.cache.processor.EntryProcessor<K,V,?> entryProcessor(int idx)
idx - Key index.public Object writeValue(int idx)
idx - Index to get.public byte[] valueBytes(int idx)
idx - Key index.@Nullable public List<GridCacheVersion> drVersions()
@Nullable public GridCacheVersion drVersion(int idx)
idx - Index.@Nullable public GridLongList drTtls()
public long drTtl(int idx)
idx - Index.@Nullable public GridLongList drExpireTimes()
public long drExpireTime(int idx)
idx - Index.public boolean hasPrimary()
public boolean forceTransformBackups()
public void forceTransformBackups(boolean forceTransformBackups)
forceTransformBackups - Force transform backups flag.public void prepareMarshal(GridCacheSharedContext<K,V> ctx) throws IgniteCheckedException
prepareMarshal in class GridCacheMessage<K,V>ctx - IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext<K,V> ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridCacheMessage<K,V>ctx - Context.ldr - Class loader.IgniteCheckedException - If failed.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in class GridCacheMessage<K,V>buf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf)
readFrom in class GridCacheMessage<K,V>buf - Byte buffer.public byte directType()
directType in class MessageAdapterpublic String toString()
toString in class GridCacheMessage<K,V>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015