public class GridDistributedTxPrepareRequest<K,V> extends GridDistributedBaseMessage<K,V>
MessageAdapter.TypeverCACHE_MSG_INDEX_FIELD_NAME, cacheId, MAX_CACHE_MSG_LOOKUP_INDEXreader, readState| Constructor and Description |
|---|
GridDistributedTxPrepareRequest()
Required by
Externalizable. |
GridDistributedTxPrepareRequest(IgniteInternalTx<K,V> tx,
Collection<IgniteTxEntry<K,V>> reads,
Collection<IgniteTxEntry<K,V>> writes,
IgniteTxKey grpLockKey,
boolean partLock,
Map<UUID,Collection<UUID>> txNodes,
boolean onePhaseCommit) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDhtVersion(IgniteTxKey<K> key,
GridCacheVersion dhtVer)
Adds version to be verified on remote node.
|
TransactionConcurrency |
concurrency() |
Map<IgniteTxKey<K>,GridCacheVersion> |
dhtVersions() |
byte |
directType()
Gets message type.
|
void |
finishUnmarshal(GridCacheSharedContext<K,V> 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() |
void |
prepareMarshal(GridCacheSharedContext<K,V> ctx)
This method is called before the whole message is serialized
and is responsible for pre-marshalling state.
|
boolean |
readFrom(ByteBuffer buf)
Reads this message from provided byte buffer.
|
Collection<IgniteTxEntry<K,V>> |
reads() |
protected void |
reads(Collection<IgniteTxEntry<K,V>> reads) |
boolean |
system() |
long |
threadId() |
long |
timeout() |
String |
toString() |
Map<UUID,Collection<UUID>> |
transactionNodes() |
int |
txSize() |
Collection<IgniteTxEntry<K,V>> |
writes() |
protected void |
writes(Collection<IgniteTxEntry<K,V>> 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, ignoreClassErrors, lookupIndex, marshalBooleanLinkedMap, marshalCollection, marshalFilter, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, marshalValuesCollection, messageId, nextIndexId, onClassError, prepare, prepareFilter, prepareObject, prepareObjects, topologyVersion, transactional, transferExpiryPolicy, unmarshalBooleanLinkedMap, unmarshalCollection, unmarshalFilter, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTx, unmarshalValueBytesCollectionsetReader, skipRecoveryclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridDistributedTxPrepareRequest()
Externalizable.public GridDistributedTxPrepareRequest(IgniteInternalTx<K,V> tx, @Nullable Collection<IgniteTxEntry<K,V>> reads, Collection<IgniteTxEntry<K,V>> 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 void addDhtVersion(IgniteTxKey<K> key, @Nullable GridCacheVersion dhtVer)
key - Key for which version is verified.dhtVer - DHT version to check.public Map<IgniteTxKey<K>,GridCacheVersion> dhtVersions()
public long threadId()
public GridCacheVersion writeVersion()
public boolean isInvalidate()
public long timeout()
public TransactionConcurrency concurrency()
public TransactionIsolation isolation()
public Collection<IgniteTxEntry<K,V>> reads()
public Collection<IgniteTxEntry<K,V>> writes()
protected void reads(Collection<IgniteTxEntry<K,V>> reads)
reads - Reads.protected void writes(Collection<IgniteTxEntry<K,V>> 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<K,V> ctx) throws IgniteCheckedException
prepareMarshal in class GridDistributedBaseMessage<K,V>ctx - IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext<K,V> ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridDistributedBaseMessage<K,V>ctx - Context.ldr - Class loader.IgniteCheckedException - If failed.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in class GridDistributedBaseMessage<K,V>buf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf)
readFrom in class GridDistributedBaseMessage<K,V>buf - Byte buffer.public byte directType()
directType in class MessageAdapterpublic String toString()
toString in class GridDistributedBaseMessage<K,V>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015