public class GridDhtTxPrepareRequest extends GridDistributedTxPrepareRequest
QUERY_UPDATE_FLAG_MASK, STORE_WRITE_THROUGH_FLAG_MASKvercacheIdaddDepInfo, CACHE_MSG_INDEX_FIELD_NAME, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEXDIRECT_TYPE_SIZE| Constructor and Description |
|---|
GridDhtTxPrepareRequest()
Empty constructor required for
Externalizable. |
GridDhtTxPrepareRequest(IgniteUuid futId,
int miniId,
AffinityTopologyVersion topVer,
GridDhtTxLocalAdapter tx,
long timeout,
Collection<IgniteTxEntry> dhtWrites,
Collection<IgniteTxEntry> nearWrites,
Map<UUID,Collection<UUID>> txNodes,
GridCacheVersion nearXidVer,
boolean last,
boolean onePhaseCommit,
UUID subjId,
int taskNameHash,
boolean addDepInfo,
boolean storeWriteThrough,
boolean retVal,
MvccSnapshot mvccSnapshot,
Collection<PartitionUpdateCountersMessage> updCntrs) |
| Modifier and Type | Method and Description |
|---|---|
short |
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 |
invalidateNearEntry(int idx) |
int |
miniId() |
MvccSnapshot |
mvccSnapshot() |
UUID |
nearNodeId() |
Collection<IgniteTxEntry> |
nearWrites() |
@Nullable List<IgniteTxKey> |
nearWritesCacheMissed() |
GridCacheVersion |
nearXidVersion() |
boolean |
needPreloadKey(int idx)
Checks whether entry info should be sent to primary node from backup.
|
Map<IgniteTxKey,GridCacheVersion> |
owned() |
void |
owned(IgniteTxKey key,
GridCacheVersion ownerMapped)
Sets owner and its mapped version.
|
int |
partition() |
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 |
skipCompletedVersion() |
@Nullable UUID |
subjectId() |
int |
taskNameHash() |
AffinityTopologyVersion |
topologyVersion()
Gets topology version or -1 in case of topology version is not required for this message.
|
String |
toString() |
@Nullable String |
txLabel() |
Collection<PartitionUpdateCountersMessage> |
updateCounters() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
addDeploymentInfo, addDhtVersion, concurrency, dhtVersions, isInvalidate, isolation, last, messageLogger, needReturnValue, needReturnValue, onePhaseCommit, policy, queryUpdate, queryUpdate, reads, reads, storeWriteThrough, storeWriteThrough, system, threadId, timeout, transactionNodes, txSize, txState, txState, writes, writes, writeVersioncommittedVersions, completedVersions, rolledbackVersions, version, versioncacheGroupMessage, cacheId, cacheId, handlerIdappendFlag, classError, deployInfo, error, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lastAffinityChangedTopologyVersion, lastAffinityChangedTopologyVersion, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onAckReceived, onClassError, partitionExchangeMessage, prepare, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, prepareObject, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridDhtTxPrepareRequest()
Externalizable.public GridDhtTxPrepareRequest(IgniteUuid futId, int miniId, AffinityTopologyVersion topVer, GridDhtTxLocalAdapter tx, long timeout, Collection<IgniteTxEntry> dhtWrites, Collection<IgniteTxEntry> nearWrites, Map<UUID,Collection<UUID>> txNodes, GridCacheVersion nearXidVer, boolean last, boolean onePhaseCommit, UUID subjId, int taskNameHash, boolean addDepInfo, boolean storeWriteThrough, boolean retVal, MvccSnapshot mvccSnapshot, Collection<PartitionUpdateCountersMessage> updCntrs)
futId - Future ID.miniId - Mini future ID.topVer - Topology version.tx - Transaction.timeout - Transaction timeout.dhtWrites - DHT writes.nearWrites - Near writes.txNodes - Transaction nodes mapping.nearXidVer - Near transaction ID.last - True if this is last prepare request for node.addDepInfo - Deployment info flag.storeWriteThrough - Cache store write through flag.retVal - Need return value flagmvccSnapshot - Mvcc snapshot.updCntrs - Update counters for mvcc Tx.public MvccSnapshot mvccSnapshot()
public Collection<PartitionUpdateCountersMessage> updateCounters()
@Nullable public @Nullable List<IgniteTxKey> nearWritesCacheMissed()
public GridCacheVersion nearXidVersion()
public UUID nearNodeId()
@Nullable public @Nullable UUID subjectId()
public int taskNameHash()
public Collection<IgniteTxEntry> nearWrites()
public boolean invalidateNearEntry(int idx)
idx - Index to get invalidation flag value.public boolean needPreloadKey(int idx)
idx - Index.True if value should be sent, false otherwise.public IgniteUuid futureId()
public int miniId()
public AffinityTopologyVersion topologyVersion()
GridCacheMessagetopologyVersion in class GridCacheMessagepublic void owned(IgniteTxKey key, GridCacheVersion ownerMapped)
key - Key.ownerMapped - Owner mapped version.public Map<IgniteTxKey,GridCacheVersion> owned()
public boolean skipCompletedVersion()
True if remote tx should skip adding itself to completed versions map on finish.@Nullable public @Nullable String txLabel()
public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException
prepareMarshal in class GridDistributedTxPrepareRequestctx - IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridDistributedTxPrepareRequestctx - Context.ldr - Class loader.IgniteCheckedException - If failed.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in interface MessagewriteTo in class GridDistributedTxPrepareRequestbuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom in interface MessagereadFrom in class GridDistributedTxPrepareRequestbuf - Byte buffer.reader - Reader.public short directType()
directType in interface MessagedirectType in class GridDistributedTxPrepareRequestpublic byte fieldsCount()
fieldsCount in interface MessagefieldsCount in class GridDistributedTxPrepareRequestpublic int partition()
partition in class GridCacheMessage-1 if it cannot be determined.public String toString()
toString in class GridDistributedTxPrepareRequest
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021