public abstract class GridDistributedBaseMessage extends GridCacheMessage implements GridCacheDeployable, GridCacheVersionable
| Modifier and Type | Field and Description |
|---|---|
protected GridCacheVersion |
ver
Lock or transaction version.
|
CACHE_MSG_INDEX_FIELD_NAME, cacheId, MAX_CACHE_MSG_LOOKUP_INDEX| Modifier | Constructor and Description |
|---|---|
protected |
GridDistributedBaseMessage()
Empty constructor required by
Externalizable |
protected |
GridDistributedBaseMessage(GridCacheVersion ver,
int cnt) |
protected |
GridDistributedBaseMessage(int cnt) |
| Modifier and Type | Method and Description |
|---|---|
Collection<GridCacheMvccCandidate> |
candidatesByIndex(int idx) |
void |
candidatesByIndex(int idx,
Collection<GridCacheMvccCandidate> candsByIdx) |
Collection<GridCacheVersion> |
committedVersions() |
void |
completedVersions(Collection<GridCacheVersion> committedVers,
Collection<GridCacheVersion> rolledbackVers) |
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. |
int |
keysCount() |
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.
|
Collection<GridCacheVersion> |
rolledbackVersions() |
String |
toString() |
GridCacheVersion |
version() |
void |
version(GridCacheVersion ver) |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
allowForStartup, cacheId, cacheId, classError, deployInfo, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onClassError, partitionExchangeMessage, prepare, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, topologyVersion, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparedirectType, fieldsCount@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 ctx) throws IgniteCheckedException
prepareMarshal in class GridCacheMessagectx - IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridCacheMessagectx - 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> candsByIdx)
idx - Key index.candsByIdx - List of candidates for that key.public Collection<GridCacheMvccCandidate> candidatesByIndex(int idx)
idx - Key index.public int keysCount()
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in interface MessagewriteTo in class GridCacheMessagebuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom in interface MessagereadFrom in class GridCacheMessagebuf - Byte buffer.reader - Reader.public String toString()
toString in class GridCacheMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 1.2.0-incubating Release Date : June 16 2015