public class GridDistributedTxPrepareRequest extends GridDistributedBaseMessage
verCACHE_MSG_INDEX_FIELD_NAME, cacheId, MAX_CACHE_MSG_LOOKUP_INDEX| Constructor and Description |
|---|
GridDistributedTxPrepareRequest()
Required by
Externalizable. |
GridDistributedTxPrepareRequest(IgniteInternalTx tx,
Collection<IgniteTxEntry> reads,
Collection<IgniteTxEntry> writes,
IgniteTxKey grpLockKey,
boolean partLock,
Map<UUID,Collection<UUID>> txNodes,
boolean onePhaseCommit) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDhtVersion(IgniteTxKey key,
GridCacheVersion dhtVer)
Adds version to be verified on remote node.
|
TransactionConcurrency |
concurrency() |
Map<IgniteTxKey,GridCacheVersion> |
dhtVersions() |
byte |
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. |
IgniteTxKey |
groupLockKey() |
boolean |
isInvalidate() |
TransactionIsolation |
isolation() |
boolean |
onePhaseCommit() |
boolean |
partitionLock() |
GridIoPolicy |
policy() |
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.
|
Collection<IgniteTxEntry> |
reads() |
protected void |
reads(Collection<IgniteTxEntry> reads) |
boolean |
system() |
long |
threadId() |
long |
timeout() |
String |
toString() |
Map<UUID,Collection<UUID>> |
transactionNodes() |
int |
txSize() |
Collection<IgniteTxEntry> |
writes() |
protected void |
writes(Collection<IgniteTxEntry> writes) |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
GridCacheVersion |
writeVersion() |
candidatesByIndex, 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, topologyVersion, transferExpiryPolicy, unmarshalBooleanLinkedMap, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridDistributedTxPrepareRequest()
Externalizable.public GridDistributedTxPrepareRequest(IgniteInternalTx tx, @Nullable Collection<IgniteTxEntry> reads, Collection<IgniteTxEntry> writes, IgniteTxKey grpLockKey, boolean partLock, Map<UUID,Collection<UUID>> txNodes, boolean onePhaseCommit)
tx - Cache transaction.reads - Read entries.writes - Write entries.grpLockKey - Group lock key.partLock - True if preparing group-lock transaction with partition lock.txNodes - Transaction nodes mapping.onePhaseCommit - One phase commit flag.public Map<UUID,Collection<UUID>> transactionNodes()
public boolean system()
public GridIoPolicy policy()
public void addDhtVersion(IgniteTxKey key, @Nullable GridCacheVersion dhtVer)
key - Key for which version is verified.dhtVer - DHT version to check.public Map<IgniteTxKey,GridCacheVersion> dhtVersions()
public long threadId()
public GridCacheVersion writeVersion()
public boolean isInvalidate()
public long timeout()
public TransactionConcurrency concurrency()
public TransactionIsolation isolation()
public Collection<IgniteTxEntry> reads()
public Collection<IgniteTxEntry> writes()
protected void reads(Collection<IgniteTxEntry> reads)
reads - Reads.protected void writes(Collection<IgniteTxEntry> writes)
writes - Writes.@Nullable public IgniteTxKey groupLockKey()
public boolean partitionLock()
True if preparing group-lock transaction with partition lock.public int txSize()
public boolean onePhaseCommit()
public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException
prepareMarshal in class GridDistributedBaseMessagectx - IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridDistributedBaseMessagectx - Context.ldr - Class loader.IgniteCheckedException - If failed.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in interface MessagewriteTo in class GridDistributedBaseMessagebuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom in interface MessagereadFrom in class GridDistributedBaseMessagebuf - Byte buffer.reader - Reader.public byte directType()
public byte fieldsCount()
public String toString()
toString in class GridDistributedBaseMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0 Release Date : March 31 2015