public class GridNearAtomicUpdateResponse<K,V> extends GridCacheMessage<K,V> implements GridCacheDeployable
| Modifier and Type | Field and Description |
|---|---|
static int |
CACHE_MSG_IDX
Cache 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 |
|---|
GridNearAtomicUpdateResponse()
Empty constructor required by
Externalizable. |
GridNearAtomicUpdateResponse(UUID nodeId,
GridCacheVersion futVer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFailedKey(K key,
Throwable e)
Adds key to collection of failed keys.
|
void |
addFailedKeys(Collection<K> keys,
Throwable e)
Adds keys to collection of failed keys.
|
void |
addNearValue(int keyIdx,
V val,
byte[] valBytes)
Adds value to be put in near cache on originating node.
|
void |
addSkippedIndex(int keyIdx) |
GridTcpCommunicationMessageAdapter |
clone() |
protected void |
clone0(GridTcpCommunicationMessageAdapter _msg)
Clones all fields of the provided message to
this. |
byte |
directType() |
Throwable |
error() |
Collection<K> |
failedKeys() |
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. |
GridCacheVersion |
futureVersion() |
int |
lookupIndex()
Gets message lookup index.
|
long |
nearTtl() |
void |
nearTtl(long ttl) |
V |
nearValue(int idx) |
byte[] |
nearValueBytes(int idx) |
List<Integer> |
nearValuesIndexes() |
GridCacheVersion |
nearVersion() |
void |
nearVersion(GridCacheVersion nearVer) |
UUID |
nodeId() |
void |
nodeId(UUID nodeId) |
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) |
Collection<K> |
remapKeys() |
void |
remapKeys(Collection<K> remapKeys) |
GridCacheReturn<Object> |
returnValue() |
void |
returnValue(GridCacheReturn<Object> retVal) |
List<Integer> |
skippedIndexes() |
String |
toString() |
boolean |
writeTo(ByteBuffer buf) |
allowForStartup, classError, deployInfo, ignoreClassErrors, marshalBooleanLinkedMap, marshalCollection, marshalFilter, marshalInfo, marshalInfos, marshalTx, marshalValuesCollection, messageId, nextIndexId, onClassError, prepare, prepareFilter, prepareObject, prepareObjects, topologyVersion, unmarshalBooleanLinkedMap, unmarshalCollection, unmarshalFilter, unmarshalInfo, unmarshalInfos, unmarshalTx, unmarshalValueBytesCollectionarrayIterator, messageReader, messageWriterequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridNearAtomicUpdateResponse()
Externalizable.public GridNearAtomicUpdateResponse(UUID nodeId, GridCacheVersion futVer)
nodeId - Node ID this reply should be sent to.futVer - Future version.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 GridCacheVersion futureVersion()
public Throwable error()
public Collection<K> failedKeys()
public GridCacheReturn<Object> returnValue()
public void returnValue(GridCacheReturn<Object> retVal)
retVal - Return value.public void remapKeys(Collection<K> remapKeys)
remapKeys - Remap keys.public Collection<K> remapKeys()
public void addNearValue(int keyIdx,
@Nullable
V val,
@Nullable
byte[] valBytes)
keyIdx - Key index.val - Value.valBytes - Value bytes.public void nearTtl(long ttl)
ttl - Time to live to be used for originating node's near cache update.public long nearTtl()
public void nearVersion(GridCacheVersion nearVer)
nearVer - Version generated on primary node to be used for originating node's near cache update.public GridCacheVersion nearVersion()
public void addSkippedIndex(int keyIdx)
keyIdx - Index of key for which update was skipped@Nullable public List<Integer> skippedIndexes()
@Nullable public List<Integer> nearValuesIndexes()
@Nullable public V nearValue(int idx)
idx - Index.@Nullable public byte[] nearValueBytes(int idx)
idx - Index.public void addFailedKey(K key, Throwable e)
key - Key to add.e - Error cause.public void addFailedKeys(Collection<K> keys, Throwable e)
keys - Key to add.e - Error cause.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.