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 |
ver
cacheId
addDepInfo, CACHE_MSG_INDEX_FIELD_NAME, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEX
DIRECT_TYPE_SIZE
Constructor and Description |
---|
GridDistributedTxFinishRequest()
Empty constructor required by
Externalizable . |
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) |
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.
|
@Nullable 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, version
cacheGroupMessage, cacheId, cacheId, handlerId
appendFlag, classError, deployInfo, error, finishUnmarshal, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lastAffinityChangedTopologyVersion, lastAffinityChangedTopologyVersion, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onAckReceived, onClassError, partition, partitionExchangeMessage, prepare, prepareMarshal, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, prepareObject, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTx
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
deployInfo, prepare
protected 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 @NotNull AffinityTopologyVersion topVer, @Nullable @Nullable GridCacheVersion commitVer, long threadId, boolean commit, boolean invalidate, boolean sys, byte plc, CacheWriteSynchronizationMode syncMode, GridCacheVersion baseVer, Collection<GridCacheVersion> committedVers, Collection<GridCacheVersion> rolledbackVers, @Nullable @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 @Nullable UUID subjectId()
public final int taskNameHash()
public final AffinityTopologyVersion topologyVersion()
GridCacheMessage
topologyVersion
in class GridCacheMessage
public 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 IgniteTxStateAware
public void txState(IgniteTxState txState)
txState
in interface IgniteTxStateAware
txState
- Transient TX state.public IgniteLogger messageLogger(GridCacheSharedContext ctx)
messageLogger
in class GridCacheMessage
ctx
- Context.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo
in interface Message
writeTo
in class GridDistributedBaseMessage
buf
- Byte buffer.writer
- Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom
in interface Message
readFrom
in class GridDistributedBaseMessage
buf
- Byte buffer.reader
- Reader.public short directType()
directType
in interface Message
public byte fieldsCount()
fieldsCount
in interface Message
fieldsCount
in class GridCacheIdMessage
public String toString()
toString
in class GridDistributedBaseMessage
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021