public class GridNearTxPrepareRequest extends GridDistributedTxPrepareRequest
verCACHE_MSG_INDEX_FIELD_NAME, cacheId, MAX_CACHE_MSG_LOOKUP_INDEX| Constructor and Description |
|---|
GridNearTxPrepareRequest()
Empty constructor required for
Externalizable. |
GridNearTxPrepareRequest(IgniteUuid futId,
AffinityTopologyVersion topVer,
IgniteInternalTx tx,
Collection<IgniteTxEntry> reads,
Collection<IgniteTxEntry> writes,
boolean near,
Map<UUID,Collection<UUID>> txNodes,
boolean last,
Collection<UUID> lastBackups,
boolean onePhaseCommit,
boolean retVal,
boolean implicitSingle,
boolean explicitLock,
UUID subjId,
int taskNameHash,
boolean firstClientReq) |
| Modifier and Type | Method and Description |
|---|---|
void |
cloneEntries() |
byte |
directType()
Gets message type.
|
boolean |
explicitLock() |
byte |
fieldsCount()
Gets fields count.
|
boolean |
firstClientRequest() |
IgniteUuid |
futureId() |
boolean |
implicitSingle() |
boolean |
last() |
Collection<UUID> |
lastBackups() |
IgniteUuid |
miniId() |
void |
miniId(IgniteUuid miniId) |
boolean |
near() |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
boolean |
returnValue() |
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.
|
addDhtVersion, concurrency, dhtVersions, finishUnmarshal, isInvalidate, isolation, onePhaseCommit, policy, prepareMarshal, reads, reads, system, threadId, timeout, transactionNodes, txSize, writes, writes, writeVersioncandidatesByIndex, candidatesByIndex, committedVersions, completedVersions, keysCount, rolledbackVersions, version, versionallowForStartup, cacheId, cacheId, classError, deployInfo, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onClassError, partitionExchangeMessage, prepare, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridNearTxPrepareRequest()
Externalizable.public GridNearTxPrepareRequest(IgniteUuid futId, AffinityTopologyVersion topVer, IgniteInternalTx tx, Collection<IgniteTxEntry> reads, Collection<IgniteTxEntry> writes, boolean near, Map<UUID,Collection<UUID>> txNodes, boolean last, Collection<UUID> lastBackups, boolean onePhaseCommit, boolean retVal, boolean implicitSingle, boolean explicitLock, @Nullable UUID subjId, int taskNameHash, boolean firstClientReq)
futId - Future ID.topVer - Topology version.tx - Transaction.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.lastBackups - IDs of backup nodes receiving last prepare request during this prepare.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.public boolean firstClientRequest()
True if first optimistic tx prepare request sent from client node.public Collection<UUID> lastBackups()
public boolean last()
True if this last prepare request for node.public boolean near()
True if mapping is for near-enabled caches.public IgniteUuid futureId()
public IgniteUuid miniId()
public void miniId(IgniteUuid miniId)
miniId - Mini future ID.public int taskNameHash()
public boolean returnValue()
public boolean implicitSingle()
public 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 byte 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. 1.2.0-incubating Release Date : June 16 2015