public class GridNearAtomicFullUpdateRequest extends GridNearAtomicAbstractUpdateRequest
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
clientReq |
protected boolean |
fastMap
Fast map flag.
|
protected boolean |
hasPrimary
Flag indicating whether request contains primary keys.
|
protected boolean |
keepBinary
Keep binary flag.
|
protected boolean |
retval
Return value flag.
|
protected boolean |
skipStore
Skip write-through to a persistent storage.
|
protected UUID |
subjId
Subject ID.
|
protected int |
taskNameHash
Task name hash.
|
protected boolean |
topLocked
Topology locked flag.
|
CACHE_MSG_IDXaddDepInfo, CACHE_MSG_INDEX_FIELD_NAME, cacheId, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEX| Constructor and Description |
|---|
GridNearAtomicFullUpdateRequest()
Empty constructor required by
Externalizable. |
| 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() |
KeyCacheObject |
key(int idx) |
List<KeyCacheObject> |
keys() |
int |
lookupIndex()
Gets message lookup index.
|
IgniteLogger |
messageLogger(GridCacheSharedContext ctx) |
UUID |
nodeId() |
void |
nodeId(UUID nodeId) |
boolean |
onResponse(GridNearAtomicUpdateResponse res) |
GridCacheOperation |
operation() |
int |
partition() |
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() |
int |
size() |
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, prepareprotected UUID subjId
protected int taskNameHash
protected boolean fastMap
protected boolean topLocked
protected boolean hasPrimary
protected boolean skipStore
protected boolean clientReq
protected boolean keepBinary
protected boolean retval
public GridNearAtomicFullUpdateRequest()
Externalizable.public int lookupIndex()
GridCacheMessage.MAX_CACHE_MSG_LOOKUP_INDEX.lookupIndex in class GridCacheMessagepublic UUID nodeId()
nodeId in class GridNearAtomicAbstractUpdateRequestpublic void nodeId(UUID nodeId)
nodeId in class GridNearAtomicAbstractUpdateRequestnodeId - Node ID.public UUID subjectId()
subjectId in class GridNearAtomicAbstractUpdateRequestpublic int taskNameHash()
taskNameHash in class GridNearAtomicAbstractUpdateRequestpublic GridCacheVersion futureVersion()
futureVersion in class GridNearAtomicAbstractUpdateRequestpublic GridCacheVersion updateVersion()
updateVersion in class GridNearAtomicAbstractUpdateRequestpublic AffinityTopologyVersion topologyVersion()
topologyVersion in class GridCacheMessagepublic CacheWriteSynchronizationMode writeSynchronizationMode()
writeSynchronizationMode in class GridNearAtomicAbstractUpdateRequestpublic GridCacheOperation operation()
operation in class GridNearAtomicAbstractUpdateRequestpublic boolean onResponse(GridNearAtomicUpdateResponse res)
onResponse in class GridNearAtomicAbstractUpdateRequestres - Response.True if current response was null.@Nullable public GridNearAtomicUpdateResponse response()
response in class GridNearAtomicAbstractUpdateRequestpublic boolean addDeploymentInfo()
addDeploymentInfo in class GridCacheMessagetrue or if deployment info must be added to the the message, false otherwise.public IgniteLogger messageLogger(GridCacheSharedContext ctx)
messageLogger in class GridCacheMessagectx - Context.public void addUpdateEntry(KeyCacheObject key, @Nullable Object val, long conflictTtl, long conflictExpireTime, @Nullable GridCacheVersion conflictVer, boolean primary)
addUpdateEntry in class GridNearAtomicAbstractUpdateRequestkey - 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()
keys in class GridNearAtomicAbstractUpdateRequestpublic int size()
size in class GridNearAtomicAbstractUpdateRequestpublic KeyCacheObject key(int idx)
key in class GridNearAtomicAbstractUpdateRequestidx - Key index.public List<?> values()
values in class GridNearAtomicAbstractUpdateRequestpublic CacheObject value(int idx)
value in class GridNearAtomicAbstractUpdateRequestidx - Key index.public javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor(int idx)
entryProcessor in class GridNearAtomicAbstractUpdateRequestidx - Key index.public CacheObject writeValue(int idx)
writeValue in class GridNearAtomicAbstractUpdateRequestidx - Index to get.@Nullable public List<GridCacheVersion> conflictVersions()
conflictVersions in class GridNearAtomicAbstractUpdateRequest@Nullable public GridCacheVersion conflictVersion(int idx)
conflictVersion in class GridNearAtomicAbstractUpdateRequestidx - Index.public long conflictTtl(int idx)
conflictTtl in class GridNearAtomicAbstractUpdateRequestidx - Index.public long conflictExpireTime(int idx)
conflictExpireTime in class GridNearAtomicAbstractUpdateRequestidx - Index.@Nullable public Object[] invokeArguments()
invokeArguments in class GridNearAtomicAbstractUpdateRequestpublic boolean fastMap()
fastMap in class GridNearAtomicAbstractUpdateRequestpublic boolean topologyLocked()
topologyLocked in class GridNearAtomicAbstractUpdateRequestpublic boolean clientRequest()
clientRequest in class GridNearAtomicAbstractUpdateRequestTrue if request sent from client node.public boolean returnValue()
returnValue in class GridNearAtomicAbstractUpdateRequestpublic boolean skipStore()
skipStore in class GridNearAtomicAbstractUpdateRequestpublic boolean keepBinary()
keepBinary in class GridNearAtomicAbstractUpdateRequestpublic boolean hasPrimary()
hasPrimary in class GridNearAtomicAbstractUpdateRequest@Nullable public CacheEntryPredicate[] filter()
filter in class GridNearAtomicAbstractUpdateRequestpublic javax.cache.expiry.ExpiryPolicy expiry()
expiry in class GridNearAtomicAbstractUpdateRequestpublic void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException
prepareMarshal in class GridCacheMessagectx - Cache context.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 int partition()
partition in class GridCacheMessage-1 if it cannot be determined.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)
cleanup in class GridNearAtomicAbstractUpdateRequestclearKeys - If true clears keys.public byte directType()
public byte fieldsCount()
public String toString()
toString in class GridCacheMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017