public class GridNearTxPrepareRequest extends GridDistributedTxPrepareRequest
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,
UUID subjId,
int taskNameHash,
boolean firstClientReq,
boolean allowWaitTopFut,
boolean addDepInfo) |
| 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() |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
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() |
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, 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, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onAckReceived, onClassError, partition, 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 UUID subjId, int taskNameHash, boolean firstClientReq, boolean allowWaitTopFut, boolean addDepInfo)
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 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 UUID subjectId()
public int taskNameHash()
public final boolean implicitSingle()
public final boolean explicitLock()
public AffinityTopologyVersion topologyVersion()
GridCacheMessagetopologyVersion in class GridCacheMessagepublic 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 String toString()
toString in class GridDistributedTxPrepareRequest
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018