public class GridDistributedTxFinishRequest<K,V> extends GridDistributedBaseMessage<K,V>
MessageAdapter.TypeverCACHE_MSG_INDEX_FIELD_NAME, cacheId, MAX_CACHE_MSG_LOOKUP_INDEXreader, readState| Constructor and Description |
|---|
GridDistributedTxFinishRequest()
Empty constructor required by
Externalizable. |
GridDistributedTxFinishRequest(GridCacheVersion xidVer,
IgniteUuid futId,
GridCacheVersion commitVer,
long threadId,
boolean commit,
boolean invalidate,
boolean sys,
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.
|
void |
finishUnmarshal(GridCacheSharedContext<K,V> 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() |
void |
prepareMarshal(GridCacheSharedContext<K,V> ctx)
This method is called before the whole message is serialized
and is responsible for pre-marshalling state.
|
boolean |
readFrom(ByteBuffer buf)
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, 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, unmarshalValueBytesCollectionsetReader, skipRecoveryclone, 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, 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 flag.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 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<K,V> ctx) throws IgniteCheckedException
prepareMarshal in class GridDistributedBaseMessage<K,V>ctx - IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext<K,V> ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridDistributedBaseMessage<K,V>ctx - Context.ldr - Class loader.IgniteCheckedException - If failed.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in class GridDistributedBaseMessage<K,V>buf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf)
readFrom in class GridDistributedBaseMessage<K,V>buf - Byte buffer.public byte directType()
directType in class MessageAdapterpublic String toString()
toString in class GridDistributedBaseMessage<K,V>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015