public abstract class GridDistributedBaseMessage<K,V> extends GridCacheMessage<K,V> implements GridCacheDeployable, GridCacheVersionable
| Modifier and Type | Field and Description |
|---|---|
protected GridCacheVersion |
ver
Lock or transaction version.
|
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| Modifier | Constructor and Description |
|---|---|
protected |
GridDistributedBaseMessage()
Empty constructor required by
Externalizable |
protected |
GridDistributedBaseMessage(GridCacheVersion ver,
int cnt) |
protected |
GridDistributedBaseMessage(int cnt) |
allowForStartup, classError, deployInfo, ignoreClassErrors, lookupIndex, marshalBooleanLinkedMap, marshalCollection, marshalFilter, marshalInfo, marshalInfos, marshalTx, marshalValuesCollection, messageId, nextIndexId, onClassError, prepare, prepareFilter, prepareObject, prepareObjects, topologyVersion, unmarshalBooleanLinkedMap, unmarshalCollection, unmarshalFilter, unmarshalInfo, unmarshalInfos, unmarshalTx, unmarshalValueBytesCollectionarrayIterator, clone, directType, messageReader, messageWriterequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, prepare@GridToStringInclude protected GridCacheVersion ver
protected GridDistributedBaseMessage()
Externalizableprotected GridDistributedBaseMessage(int cnt)
cnt - Count of keys references in list of candidates.protected GridDistributedBaseMessage(GridCacheVersion ver, int cnt)
ver - Either lock or transaction version.cnt - Key count.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 GridCacheVersion version()
version in interface GridCacheVersionablepublic void version(GridCacheVersion ver)
ver - Version.public void completedVersions(Collection<GridCacheVersion> committedVers, Collection<GridCacheVersion> rolledbackVers)
committedVers - Committed versions.rolledbackVers - Rolled back versions.public Collection<GridCacheVersion> committedVersions()
public Collection<GridCacheVersion> rolledbackVersions()
public void candidatesByIndex(int idx,
Collection<GridCacheMvccCandidate<K>> candsByIdx)
idx - Key index.candsByIdx - List of candidates for that key.public Collection<GridCacheMvccCandidate<K>> candidatesByIndex(int idx)
idx - Key index.public void candidatesByKey(K key, Collection<GridCacheMvccCandidate<K>> candsByKey)
key - Candidates key.candsByKey - Collection of local candidates.@Nullable public Collection<GridCacheMvccCandidate<K>> candidatesByKey(K key)
key - Candidates key.public Map<K,Collection<GridCacheMvccCandidate<K>>> candidatesByKey()
public int keysCount()
protected 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 String toString()
toString in class GridCacheMessage<K,V>Copyright © 2014. All rights reserved.