public abstract class GridDistributedBaseMessage<K,V> extends GridCacheMessage<K,V> implements GridCacheDeployable, GridCacheVersionable
MessageAdapter.Type| Modifier and Type | Field and Description |
|---|---|
protected GridCacheVersion |
ver
Lock or transaction version.
|
CACHE_MSG_INDEX_FIELD_NAME, cacheId, MAX_CACHE_MSG_LOOKUP_INDEXreader, readState| Modifier | Constructor and Description |
|---|---|
protected |
GridDistributedBaseMessage()
Empty constructor required by
Externalizable |
protected |
GridDistributedBaseMessage(GridCacheVersion ver,
int cnt) |
protected |
GridDistributedBaseMessage(int cnt) |
allowForStartup, cacheId, cacheId, classError, deployInfo, ignoreClassErrors, lookupIndex, marshalBooleanLinkedMap, marshalCollection, marshalFilter, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, marshalValuesCollection, messageId, nextIndexId, onClassError, prepare, prepareFilter, prepareObject, prepareObjects, topologyVersion, transactional, transferExpiryPolicy, unmarshalBooleanLinkedMap, unmarshalCollection, unmarshalFilter, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTx, unmarshalValueBytesCollectiondirectType, setReader, skipRecoveryclone, equals, 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(GridCacheSharedContext<K,V> ctx) throws IgniteCheckedException
prepareMarshal in class GridCacheMessage<K,V>ctx - IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext<K,V> ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridCacheMessage<K,V>ctx - Context.ldr - Class loader.IgniteCheckedException - 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()
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in class GridCacheMessage<K,V>buf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf)
readFrom in class GridCacheMessage<K,V>buf - Byte buffer.public String toString()
toString in class GridCacheMessage<K,V>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015