public class GridNearTxPrepareRequest 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 |
|---|
GridNearTxPrepareRequest()
Empty constructor required for
Externalizable. |
GridNearTxPrepareRequest(IgniteUuid futId,
AffinityTopologyVersion topVer,
GridNearTxLocal tx,
long timeout,
Collection<IgniteTxEntry> reads,
Collection<IgniteTxEntry> writes,
boolean near,
Map<UUID,Collection<UUID>> txNodes,
boolean last,
boolean onePhaseCommit,
boolean retVal,
boolean implicitSingle,
boolean explicitLock,
@Nullable UUID subjId,
int taskNameHash,
boolean firstClientReq,
boolean allowWaitTopFut,
boolean addDepInfo,
boolean recovery) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowWaitTopologyFuture() |
void |
cloneEntries() |
short |
directType()
Gets message type.
|
boolean |
explicitLock() |
byte |
fieldsCount()
Gets fields count.
|
boolean |
firstClientRequest() |
IgniteUuid |
futureId() |
boolean |
implicitSingle() |
int |
miniId() |
void |
miniId(int miniId) |
boolean |
near() |
int |
partition() |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
boolean |
recovery() |
void |
recovery(boolean val) |
@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() |
protected boolean |
transferExpiryPolicy() |
@Nullable String |
txLabel() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
addDeploymentInfo, addDhtVersion, concurrency, dhtVersions, finishUnmarshal, isInvalidate, isolation, last, messageLogger, needReturnValue, needReturnValue, onePhaseCommit, policy, prepareMarshal, 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, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridNearTxPrepareRequest()
Externalizable.public GridNearTxPrepareRequest(IgniteUuid futId, AffinityTopologyVersion topVer, GridNearTxLocal tx, long timeout, Collection<IgniteTxEntry> reads, Collection<IgniteTxEntry> writes, boolean near, Map<UUID,Collection<UUID>> txNodes, boolean last, boolean onePhaseCommit, boolean retVal, boolean implicitSingle, boolean explicitLock, @Nullable @Nullable UUID subjId, int taskNameHash, boolean firstClientReq, boolean allowWaitTopFut, boolean addDepInfo, boolean recovery)
futId - Future ID.topVer - Topology version.tx - Transaction.timeout - Transaction timeout.reads - Read entries.writes - Write entries.near - True if mapping is for near caches.txNodes - Transaction nodes mapping.last - True if this last prepare request for node.onePhaseCommit - One phase commit flag.retVal - Return value flag.implicitSingle - Implicit single flag.explicitLock - Explicit lock flag.subjId - Subject ID.taskNameHash - Task name hash.firstClientReq - True if first optimistic tx prepare request sent from client node.allowWaitTopFut - True if it is safe for first client request to wait for topology future.addDepInfo - Deployment info flag.public boolean allowWaitTopologyFuture()
True if it is safe for first client request to wait for topology future
completion.public final boolean recovery()
public void recovery(boolean val)
val - Recovery flag.public final boolean firstClientRequest()
True if first optimistic tx prepare request sent from client node.public final boolean near()
True if mapping is for near-enabled caches.public IgniteUuid futureId()
public int miniId()
public void miniId(int miniId)
miniId - Mini future ID.@Nullable public @Nullable UUID subjectId()
public int taskNameHash()
public final boolean implicitSingle()
public final boolean explicitLock()
public AffinityTopologyVersion topologyVersion()
GridCacheMessagetopologyVersion in class GridCacheMessage@Nullable public @Nullable String txLabel()
public void cloneEntries()
protected boolean transferExpiryPolicy()
transferExpiryPolicy in class GridCacheMessageTrue if entries expire policy should be marshalled.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.9.0 Release Date : October 15 2020