public class GridDhtAtomicUpdateRequest<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 |
|---|
GridDhtAtomicUpdateRequest()
Empty constructor required by
Externalizable. |
GridDhtAtomicUpdateRequest(int cacheId,
UUID nodeId,
GridCacheVersion futVer,
GridCacheVersion writeVer,
CacheWriteSynchronizationMode syncMode,
long topVer,
boolean forceTransformBackups,
UUID subjId,
int taskNameHash,
Object[] invokeArgs)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNearWriteValue(K key,
byte[] keyBytes,
V val,
byte[] valBytes,
javax.cache.processor.EntryProcessor<K,V,?> entryProcessor,
long ttl,
long expireTime) |
void |
addWriteValue(K key,
byte[] keyBytes,
V val,
byte[] valBytes,
javax.cache.processor.EntryProcessor<K,V,?> entryProcessor,
long ttl,
long drExpireTime,
GridCacheVersion drVer) |
byte |
directType()
Gets message type.
|
long |
drExpireTime(int idx) |
GridLongList |
drExpireTimes() |
GridCacheVersion |
drVersion(int idx) |
List<GridCacheVersion> |
drVersions() |
javax.cache.processor.EntryProcessor<K,V,?> |
entryProcessor(int idx) |
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() |
GridCacheVersion |
futureVersion() |
Object[] |
invokeArguments() |
K |
key(int idx) |
byte[] |
keyBytes(int idx) |
Collection<K> |
keys() |
int |
lookupIndex()
Gets message lookup index.
|
javax.cache.processor.EntryProcessor<K,V,?> |
nearEntryProcessor(int idx) |
long |
nearExpireTime(int idx) |
K |
nearKey(int idx) |
byte[] |
nearKeyBytes(int idx) |
int |
nearSize() |
long |
nearTtl(int idx) |
V |
nearValue(int idx) |
byte[] |
nearValueBytes(int idx) |
UUID |
nodeId() |
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.
|
int |
size() |
UUID |
subjectId() |
int |
taskNameHash() |
long |
topologyVersion()
Gets topology version or -1 in case of topology version is not required for this message.
|
String |
toString() |
long |
ttl(int idx) |
V |
value(int idx) |
byte[] |
valueBytes(int idx) |
CacheWriteSynchronizationMode |
writeSynchronizationMode() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
GridCacheVersion |
writeVersion() |
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 GridDhtAtomicUpdateRequest()
Externalizable.public GridDhtAtomicUpdateRequest(int cacheId,
UUID nodeId,
GridCacheVersion futVer,
GridCacheVersion writeVer,
CacheWriteSynchronizationMode syncMode,
long 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(K key, @Nullable byte[] keyBytes, @Nullable V val, @Nullable byte[] valBytes, javax.cache.processor.EntryProcessor<K,V,?> entryProcessor, long ttl, long drExpireTime, @Nullable GridCacheVersion drVer)
key - Key to add.keyBytes - Key bytes, if key was already serialized.val - Value, null if should be removed.valBytes - Value bytes, null if should be removed.entryProcessor - Entry processor.ttl - TTL (optional).drExpireTime - DR expire time (optional).drVer - DR version (optional).public void addNearWriteValue(K key, @Nullable byte[] keyBytes, @Nullable V val, @Nullable byte[] valBytes, javax.cache.processor.EntryProcessor<K,V,?> entryProcessor, long ttl, long expireTime)
key - Key to add.keyBytes - Key bytes, if key was already serialized.val - Value, null if should be removed.valBytes - Value bytes, 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 GridCacheMessage<K,V>public UUID nodeId()
public UUID subjectId()
public int taskNameHash()
public int size()
public int nearSize()
public GridCacheVersion futureVersion()
public GridCacheVersion writeVersion()
public CacheWriteSynchronizationMode writeSynchronizationMode()
public long topologyVersion()
GridCacheMessagetopologyVersion in class GridCacheMessage<K,V>public Collection<K> keys()
public K key(int idx)
idx - Key index.public K nearKey(int idx)
idx - Near key index.@Nullable public byte[] keyBytes(int idx)
idx - Key index.@Nullable public byte[] nearKeyBytes(int idx)
idx - Near key index.@Nullable public javax.cache.processor.EntryProcessor<K,V,?> entryProcessor(int idx)
idx - Key index.@Nullable public javax.cache.processor.EntryProcessor<K,V,?> nearEntryProcessor(int idx)
idx - Key index.@Nullable public byte[] valueBytes(int idx)
idx - Key index.@Nullable public byte[] nearValueBytes(int idx)
idx - Near key index.@Nullable public List<GridCacheVersion> drVersions()
@Nullable public GridCacheVersion drVersion(int idx)
idx - Index.public long ttl(int idx)
idx - Index.public long nearTtl(int idx)
idx - Index.@Nullable public GridLongList drExpireTimes()
public long drExpireTime(int idx)
idx - Index.public long nearExpireTime(int idx)
idx - Index.@Nullable public Object[] invokeArguments()
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