public class GridDistributedTxFinishRequest extends GridDistributedBaseMessage implements IgniteTxStateAware
| Modifier and Type | Field and Description |
|---|---|
protected static int |
CHECK_COMMITTED_FLAG_MASK |
protected static int |
EXPLICIT_LOCK_FLAG_MASK |
protected static int |
NEED_RETURN_VALUE_FLAG_MASK |
protected static int |
STORE_ENABLED_FLAG_MASK |
protected static int |
SYS_INVALIDATE_FLAG_MASK |
protected static int |
WAIT_REMOTE_TX_FLAG_MASK |
vercacheIdaddDepInfo, CACHE_MSG_INDEX_FIELD_NAME, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEXDIRECT_TYPE_SIZE| Constructor and Description |
|---|
GridDistributedTxFinishRequest()
Empty constructor required by
Externalizable. |
GridDistributedTxFinishRequest(GridCacheVersion xidVer,
IgniteUuid futId,
AffinityTopologyVersion topVer,
GridCacheVersion commitVer,
long threadId,
boolean commit,
boolean invalidate,
boolean sys,
byte plc,
CacheWriteSynchronizationMode syncMode,
GridCacheVersion baseVer,
Collection<GridCacheVersion> committedVers,
Collection<GridCacheVersion> rolledbackVers,
UUID subjId,
int taskNameHash,
int txSize,
boolean addDepInfo) |
| Modifier and Type | Method and Description |
|---|---|
GridCacheVersion |
baseVersion() |
boolean |
commit() |
GridCacheVersion |
commitVersion() |
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
IgniteUuid |
futureId() |
protected boolean |
isFlag(int mask)
Reags flag mask.
|
boolean |
isInvalidate() |
IgniteLogger |
messageLogger(GridCacheSharedContext ctx) |
byte |
policy() |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
boolean |
replyRequired() |
protected void |
setFlag(boolean flag,
int mask)
Sets flag mask.
|
UUID |
subjectId() |
CacheWriteSynchronizationMode |
syncMode() |
boolean |
system() |
int |
taskNameHash() |
long |
threadId() |
AffinityTopologyVersion |
topologyVersion()
Gets topology version or -1 in case of topology version is not required for this message.
|
String |
toString() |
int |
txSize() |
IgniteTxState |
txState() |
void |
txState(IgniteTxState txState) |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
addDeploymentInfo, committedVersions, completedVersions, rolledbackVersions, version, versioncacheGroupMessage, cacheId, cacheId, handlerIdappendFlag, classError, deployInfo, error, finishUnmarshal, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onAckReceived, onClassError, partition, partitionExchangeMessage, prepare, prepareMarshal, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, prepareObject, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, prepareprotected static final int WAIT_REMOTE_TX_FLAG_MASK
protected static final int CHECK_COMMITTED_FLAG_MASK
protected static final int NEED_RETURN_VALUE_FLAG_MASK
protected static final int SYS_INVALIDATE_FLAG_MASK
protected static final int EXPLICIT_LOCK_FLAG_MASK
protected static final int STORE_ENABLED_FLAG_MASK
public GridDistributedTxFinishRequest()
Externalizable.public GridDistributedTxFinishRequest(GridCacheVersion xidVer, IgniteUuid futId, @NotNull AffinityTopologyVersion topVer, @Nullable GridCacheVersion commitVer, long threadId, boolean commit, boolean invalidate, boolean sys, byte plc, CacheWriteSynchronizationMode syncMode, GridCacheVersion baseVer, Collection<GridCacheVersion> committedVers, Collection<GridCacheVersion> rolledbackVers, @Nullable UUID subjId, int taskNameHash, int txSize, boolean addDepInfo)
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.syncMode - Write synchronization mode.baseVer - Base version.committedVers - Committed versions.rolledbackVers - Rolled back versions.txSize - Expected transaction size.addDepInfo - Deployment info flag.public final CacheWriteSynchronizationMode syncMode()
protected final void setFlag(boolean flag,
int mask)
flag - Set or clear.mask - Mask.protected final boolean isFlag(int mask)
mask - Mask to read.@Nullable public final UUID subjectId()
public final int taskNameHash()
public final AffinityTopologyVersion topologyVersion()
GridCacheMessagetopologyVersion in class GridCacheMessagepublic boolean system()
public byte policy()
public IgniteUuid futureId()
public long threadId()
public GridCacheVersion commitVersion()
public boolean commit()
public boolean isInvalidate()
public GridCacheVersion baseVersion()
public int txSize()
public boolean replyRequired()
True if reply is required.public IgniteTxState txState()
txState in interface IgniteTxStateAwarepublic void txState(IgniteTxState txState)
txState in interface IgniteTxStateAwaretxState - Transient TX state.public IgniteLogger messageLogger(GridCacheSharedContext ctx)
messageLogger in class GridCacheMessagectx - Context.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 short directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface MessagefieldsCount in class GridCacheIdMessagepublic String toString()
toString in class GridDistributedBaseMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 2.1.0 Release Date : July 20 2017