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,
long topVer,
IgniteInternalTx tx,
Collection<IgniteTxEntry> reads,
Collection<IgniteTxEntry> writes,
IgniteTxKey grpLockKey,
boolean partLock,
boolean near,
Map<UUID,Collection<UUID>> txNodes,
boolean last,
Collection<UUID> lastBackups,
boolean onePhaseCommit,
boolean retVal,
boolean implicitSingle,
UUID subjId,
int taskNameHash) |
| Modifier and Type | Method and Description |
|---|---|
void |
cloneEntries() |
byte |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
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() |
long |
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, groupLockKey, isInvalidate, isolation, onePhaseCommit, partitionLock, policy, prepareMarshal, reads, reads, system, threadId, timeout, transactionNodes, txSize, writes, writes, writeVersioncandidatesByIndex, candidatesByIndex, candidatesByKey, candidatesByKey, candidatesByKey, committedVersions, completedVersions, keysCount, rolledbackVersions, version, versionallowForStartup, cacheId, cacheId, classError, deployInfo, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lookupIndex, marshalBooleanLinkedMap, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onClassError, prepare, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, unmarshalBooleanLinkedMap, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridNearTxPrepareRequest()
Externalizable.public GridNearTxPrepareRequest(IgniteUuid futId, long topVer, IgniteInternalTx tx, Collection<IgniteTxEntry> reads, Collection<IgniteTxEntry> writes, IgniteTxKey grpLockKey, boolean partLock, boolean near, Map<UUID,Collection<UUID>> txNodes, boolean last, Collection<UUID> lastBackups, boolean onePhaseCommit, boolean retVal, boolean implicitSingle, @Nullable UUID subjId, int taskNameHash)
futId - Future ID.topVer - Topology version.tx - Transaction.reads - Read entries.writes - Write entries.grpLockKey - Group lock key if preparing group-lock transaction.partLock - True if preparing group-lock transaction with partition lock.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.subjId - Subject ID.taskNameHash - Task name hash.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 long 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.0.0-RC3 Release Date : March 24 2015