public class GridDistributedTxFinishRequest extends GridDistributedBaseMessage
verCACHE_MSG_INDEX_FIELD_NAME, cacheId, MAX_CACHE_MSG_LOOKUP_INDEX| Constructor and Description |
|---|
GridDistributedTxFinishRequest()
Empty constructor required by
Externalizable. |
GridDistributedTxFinishRequest(GridCacheVersion xidVer,
IgniteUuid futId,
GridCacheVersion commitVer,
long threadId,
boolean commit,
boolean invalidate,
boolean sys,
GridIoPolicy plc,
boolean syncCommit,
boolean syncRollback,
GridCacheVersion baseVer,
Collection<GridCacheVersion> committedVers,
Collection<GridCacheVersion> rolledbackVers,
int txSize,
IgniteTxKey grpLockKey) |
| Modifier and Type | Method and Description |
|---|---|
GridCacheVersion |
baseVersion() |
boolean |
commit() |
GridCacheVersion |
commitVersion() |
byte |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
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. |
IgniteUuid |
futureId() |
boolean |
groupLock() |
IgniteTxKey |
groupLockKey() |
boolean |
isInvalidate() |
GridIoPolicy |
policy() |
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.
|
boolean |
replyRequired() |
boolean |
syncCommit() |
boolean |
syncRollback() |
boolean |
system() |
long |
threadId() |
String |
toString() |
int |
txSize() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
candidatesByIndex, candidatesByIndex, candidatesByKey, candidatesByKey, candidatesByKey, committedVersions, completedVersions, keysCount, rolledbackVersions, version, versionallowForStartup, cacheId, cacheId, classError, deployInfo, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lookupIndex, marshalBooleanLinkedMap, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onClassError, partitionExchangeMessage, prepare, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, topologyVersion, transferExpiryPolicy, unmarshalBooleanLinkedMap, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridDistributedTxFinishRequest()
Externalizable.public GridDistributedTxFinishRequest(GridCacheVersion xidVer, IgniteUuid futId, @Nullable GridCacheVersion commitVer, long threadId, boolean commit, boolean invalidate, boolean sys, GridIoPolicy plc, boolean syncCommit, boolean syncRollback, GridCacheVersion baseVer, Collection<GridCacheVersion> committedVers, Collection<GridCacheVersion> rolledbackVers, int txSize, @Nullable IgniteTxKey grpLockKey)
xidVer - Transaction ID.futId - future ID.threadId - Thread ID.commitVer - Commit version.commit - Commit flag.invalidate - Invalidate flag.sys - System transaction flag.plc - IO policy.baseVer - Base version.committedVers - Committed versions.rolledbackVers - Rolled back versions.txSize - Expected transaction size.grpLockKey - Group lock key if this is a group-lock transaction.public boolean system()
public GridIoPolicy policy()
public IgniteUuid futureId()
public long threadId()
public GridCacheVersion commitVersion()
public boolean commit()
public boolean isInvalidate()
public boolean syncCommit()
public boolean syncRollback()
public GridCacheVersion baseVersion()
public int txSize()
public boolean replyRequired()
True if reply is required.public boolean groupLock()
True if group lock transaction.@Nullable public IgniteTxKey groupLockKey()
public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException
prepareMarshal in class GridDistributedBaseMessagectx - IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridDistributedBaseMessagectx - Context.ldr - Class loader.IgniteCheckedException - If failed.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in interface MessagewriteTo in class GridDistributedBaseMessagebuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom in interface MessagereadFrom in class GridDistributedBaseMessagebuf - Byte buffer.reader - Reader.public byte directType()
public byte fieldsCount()
public String toString()
toString in class GridDistributedBaseMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 1.1.0-incubating Release Date : May 20 2015