public class GridNearAtomicUpdateRequest<K,V> extends GridCacheMessage<K,V> implements GridCacheDeployable
| Modifier and Type | Field and Description |
|---|---|
static int |
CACHE_MSG_IDX
Message index.
|
CACHE_MSG_INDEX_FIELD_NAME, MAX_CACHE_MSG_LOOKUP_INDEXBIT_SET_NOT_READ, BOOLEAN_ARR_NOT_READ, BYTE_ARR_LIST_NOT_READ, BYTE_ARR_NOT_READ, CACHE_VER_NOT_READ, CHAR_ARR_NOT_READ, CLOCK_DELTA_VER_NOT_READ, commState, DHT_PART_EXCHANGE_ID_NOT_READ, DOUBLE_ARR_NOT_READ, DR_INT_REQ_ENTRY_NOT_READ, ENUM_NOT_READ, FLOAT_ARR_NOT_READ, GRID_UUID_NOT_READ, INT_ARR_NOT_READ, LONG_ARR_NOT_READ, LONG_LIST_NOT_READ, MSG_NOT_READ, NULL, SHORT_ARR_NOT_READ, STR_NOT_READ, UUID_NOT_READ, VAL_BYTES_NOT_READ| Constructor and Description |
|---|
GridNearAtomicUpdateRequest()
Empty constructor required by
Externalizable. |
GridNearAtomicUpdateRequest(UUID nodeId,
GridCacheVersion futVer,
boolean fastMap,
GridCacheVersion updateVer,
long topVer,
GridCacheWriteSynchronizationMode syncMode,
GridCacheOperation op,
boolean retval,
boolean forceTransformBackups,
long ttl,
GridPredicate<GridCacheEntry<K,V>>[] filter,
UUID subjId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addUpdateEntry(K key,
Object val,
long drTtl,
long drExpireTime,
GridCacheVersion drVer,
boolean primary) |
GridTcpCommunicationMessageAdapter |
clone() |
protected void |
clone0(GridTcpCommunicationMessageAdapter _msg)
Clones all fields of the provided message to
this. |
byte |
directType() |
long |
drExpireTime(int idx) |
GridLongList |
drExpireTimes() |
long |
drTtl(int idx) |
GridLongList |
drTtls() |
GridCacheVersion |
drVersion(int idx) |
List<GridCacheVersion> |
drVersions() |
boolean |
fastMap() |
GridPredicate<GridCacheEntry<K,V>>[] |
filter() |
void |
finishUnmarshal(GridCacheContext<K,V> ctx,
ClassLoader ldr)
This method is called after the message is deserialized and is responsible for
unmarshalling state marshalled in
GridCacheMessage.prepareMarshal(GridCacheContext) method. |
boolean |
forceTransformBackups() |
void |
forceTransformBackups(boolean forceTransformBackups) |
GridCacheVersion |
futureVersion() |
boolean |
hasPrimary() |
List<K> |
keys() |
int |
lookupIndex()
Gets message lookup index.
|
UUID |
nodeId() |
void |
nodeId(UUID nodeId) |
GridCacheOperation |
operation() |
void |
prepareMarshal(GridCacheContext<K,V> ctx)
This method is called before the whole message is serialized
and is responsible for pre-marshalling state.
|
boolean |
readFrom(ByteBuffer buf) |
boolean |
returnValue() |
UUID |
subjectId() |
long |
topologyVersion()
Gets topology version or -1 in case of topology version is not required for this message.
|
String |
toString() |
GridClosure<V,V> |
transformClosure(int idx) |
long |
ttl() |
GridCacheVersion |
updateVersion() |
V |
value(int idx) |
byte[] |
valueBytes(int idx) |
List<Object> |
values() |
GridCacheWriteSynchronizationMode |
writeSynchronizationMode() |
boolean |
writeTo(ByteBuffer buf) |
Object |
writeValue(int idx) |
allowForStartup, classError, deployInfo, ignoreClassErrors, marshalBooleanLinkedMap, marshalCollection, marshalFilter, marshalInfo, marshalInfos, marshalTx, marshalValuesCollection, messageId, nextIndexId, onClassError, prepare, prepareFilter, prepareObject, prepareObjects, unmarshalBooleanLinkedMap, unmarshalCollection, unmarshalFilter, unmarshalInfo, unmarshalInfos, unmarshalTx, unmarshalValueBytesCollectionarrayIterator, messageReader, messageWriterequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridNearAtomicUpdateRequest()
Externalizable.public GridNearAtomicUpdateRequest(UUID nodeId, GridCacheVersion futVer, boolean fastMap, @Nullable GridCacheVersion updateVer, long topVer, GridCacheWriteSynchronizationMode syncMode, GridCacheOperation op, boolean retval, boolean forceTransformBackups, long ttl, @Nullable GridPredicate<GridCacheEntry<K,V>>[] filter, @Nullable UUID subjId)
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.ttl - Time to live.filter - Optional filter for atomic check.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 GridCacheVersion futureVersion()
public boolean fastMap()
public GridCacheVersion updateVersion()
public long topologyVersion()
GridCacheMessagetopologyVersion in class GridCacheMessage<K,V>public GridCacheWriteSynchronizationMode writeSynchronizationMode()
public long ttl()
public boolean returnValue()
@Nullable public GridPredicate<GridCacheEntry<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()
public V value(int idx)
idx - Key index.public GridClosure<V,V> transformClosure(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(GridCacheContext<K,V> ctx) throws GridException
prepareMarshal in class GridCacheMessage<K,V>ctx - Cache context.GridException - If failed.public void finishUnmarshal(GridCacheContext<K,V> ctx, ClassLoader ldr) throws GridException
GridCacheMessage.prepareMarshal(GridCacheContext) method.finishUnmarshal in class GridCacheMessage<K,V>ctx - Context.ldr - Class loader.GridException - If failed.public GridTcpCommunicationMessageAdapter clone()
clone in class GridTcpCommunicationMessageAdapterprotected void clone0(GridTcpCommunicationMessageAdapter _msg)
this.clone0 in class GridCacheMessage<K,V>_msg - Message to clone from.public boolean writeTo(ByteBuffer buf)
writeTo in class GridCacheMessage<K,V>buf - Byte buffer.public boolean readFrom(ByteBuffer buf)
readFrom in class GridCacheMessage<K,V>buf - Byte buffer.public byte directType()
directType in class GridTcpCommunicationMessageAdapterpublic String toString()
toString in class GridCacheMessage<K,V>Copyright © 2014. All rights reserved.