public class GridNearAtomicSingleUpdateRequest extends GridNearAtomicAbstractSingleUpdateRequest
Modifier and Type | Field and Description |
---|---|
protected KeyCacheObject |
key
Key to update.
|
protected CacheObject |
val
Value to update.
|
CACHE_MSG_IDX, flags, futId, nodeId, op, subjId, syncMode, taskNameHash, topVer
addDepInfo, CACHE_MSG_INDEX_FIELD_NAME, cacheId, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEX
DIRECT_TYPE_SIZE
Constructor and Description |
---|
GridNearAtomicSingleUpdateRequest()
Empty constructor required by
Externalizable . |
Modifier and Type | Method and Description |
---|---|
void |
addUpdateEntry(KeyCacheObject key,
Object val,
long conflictTtl,
long conflictExpireTime,
GridCacheVersion conflictVer) |
void |
cleanup(boolean clearKey)
Cleanup values.
|
long |
conflictExpireTime(int idx) |
long |
conflictTtl(int idx) |
GridCacheVersion |
conflictVersion(int idx) |
List<GridCacheVersion> |
conflictVersions() |
short |
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. |
KeyCacheObject |
key(int idx) |
List<KeyCacheObject> |
keys() |
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.
|
int |
size() |
String |
toString() |
CacheObject |
value(int idx) |
List<?> |
values() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
CacheObject |
writeValue(int idx) |
expiry, filter, invokeArguments
addDeploymentInfo, futureId, keepBinary, keepBinary, lookupIndex, messageLogger, nodeId, onResponse, operation, recovery, recovery, response, returnValue, returnValue, skipStore, skipStore, subjectId, taskNameHash, topologyVersion, writeSynchronizationMode
appendFlag, 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, unmarshalTx
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
deployInfo, prepare
@GridToStringInclude protected KeyCacheObject key
protected CacheObject val
public GridNearAtomicSingleUpdateRequest()
Externalizable
.public int partition()
partition
in class GridCacheMessage
-1
if it cannot be determined.public void addUpdateEntry(KeyCacheObject key, @Nullable Object val, long conflictTtl, long conflictExpireTime, @Nullable GridCacheVersion conflictVer)
key
- Key to add.val
- Optional update value.conflictTtl
- Conflict TTL (optional).conflictExpireTime
- Conflict expire time (optional).conflictVer
- Conflict version (optional).public int size()
size
in class GridNearAtomicAbstractUpdateRequest
public List<KeyCacheObject> keys()
keys
in class GridNearAtomicAbstractUpdateRequest
public KeyCacheObject key(int idx)
key
in class GridNearAtomicAbstractUpdateRequest
idx
- Key index.public List<?> values()
values
in class GridNearAtomicAbstractUpdateRequest
public CacheObject value(int idx)
value
in class GridNearAtomicAbstractUpdateRequest
idx
- Key index.public javax.cache.processor.EntryProcessor<Object,Object,Object> entryProcessor(int idx)
entryProcessor
in class GridNearAtomicAbstractUpdateRequest
idx
- Key index.public CacheObject writeValue(int idx)
writeValue
in class GridNearAtomicAbstractUpdateRequest
idx
- Index to get.@Nullable public List<GridCacheVersion> conflictVersions()
conflictVersions
in class GridNearAtomicAbstractUpdateRequest
@Nullable public GridCacheVersion conflictVersion(int idx)
conflictVersion
in class GridNearAtomicAbstractUpdateRequest
idx
- Index.public long conflictTtl(int idx)
conflictTtl
in class GridNearAtomicAbstractUpdateRequest
idx
- Index.public long conflictExpireTime(int idx)
conflictExpireTime
in class GridNearAtomicAbstractUpdateRequest
idx
- Index.public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException
prepareMarshal
in class GridCacheMessage
ctx
- Cache context.IgniteCheckedException
- If failed.public void finishUnmarshal(GridCacheSharedContext ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext)
method.finishUnmarshal
in class GridCacheMessage
ctx
- Context.ldr
- Class loader.IgniteCheckedException
- If failed.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo
in interface Message
writeTo
in class GridNearAtomicAbstractUpdateRequest
buf
- Byte buffer.writer
- Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom
in interface Message
readFrom
in class GridNearAtomicAbstractUpdateRequest
buf
- Byte buffer.reader
- Reader.public void cleanup(boolean clearKey)
cleanup
in class GridNearAtomicAbstractUpdateRequest
clearKey
- If true
clears keys.public short directType()
public byte fieldsCount()
fieldsCount
in interface Message
fieldsCount
in class GridNearAtomicAbstractUpdateRequest
public String toString()
toString
in class GridNearAtomicAbstractUpdateRequest
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017