public class GridDistributedTxPrepareRequest extends GridDistributedBaseMessage implements IgniteTxStateAware
| Modifier and Type | Field and Description |
|---|---|
static int |
STORE_WRITE_THROUGH_FLAG_MASK |
vercacheIdaddDepInfo, CACHE_MSG_INDEX_FIELD_NAME, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEXDIRECT_TYPE_SIZE| Constructor and Description |
|---|
GridDistributedTxPrepareRequest()
Required by
Externalizable. |
GridDistributedTxPrepareRequest(IgniteInternalTx tx,
long timeout,
Collection<IgniteTxEntry> reads,
Collection<IgniteTxEntry> writes,
Map<UUID,Collection<UUID>> txNodes,
boolean retVal,
boolean last,
boolean onePhaseCommit,
boolean addDepInfo) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDeploymentInfo()
Deployment enabled flag indicates whether deployment info has to be added to this message.
|
void |
addDhtVersion(IgniteTxKey key,
GridCacheVersion dhtVer)
Adds version to be verified on remote node.
|
TransactionConcurrency |
concurrency() |
Map<IgniteTxKey,GridCacheVersion> |
dhtVersions() |
short |
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. |
boolean |
isInvalidate() |
TransactionIsolation |
isolation() |
boolean |
last() |
IgniteLogger |
messageLogger(GridCacheSharedContext ctx) |
boolean |
needReturnValue() |
void |
needReturnValue(boolean retVal) |
boolean |
onePhaseCommit() |
byte |
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 |
storeWriteThrough() |
void |
storeWriteThrough(boolean storeWriteThrough) |
boolean |
system() |
long |
threadId() |
long |
timeout() |
String |
toString() |
Map<UUID,Collection<UUID>> |
transactionNodes() |
int |
txSize() |
IgniteTxState |
txState() |
void |
txState(IgniteTxState txState) |
Collection<IgniteTxEntry> |
writes() |
protected void |
writes(Collection<IgniteTxEntry> writes) |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
GridCacheVersion |
writeVersion() |
committedVersions, 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, topologyVersion, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic static final int STORE_WRITE_THROUGH_FLAG_MASK
public GridDistributedTxPrepareRequest()
Externalizable.public GridDistributedTxPrepareRequest(IgniteInternalTx tx, long timeout, @Nullable Collection<IgniteTxEntry> reads, Collection<IgniteTxEntry> writes, Map<UUID,Collection<UUID>> txNodes, boolean retVal, boolean last, boolean onePhaseCommit, boolean addDepInfo)
tx - Cache transaction.timeout - Transactions timeout.reads - Read entries.writes - Write entries.txNodes - Transaction nodes mapping.retVal - Return value flag.last - Last request flag.onePhaseCommit - One phase commit flag.addDepInfo - Deployment info flag.public final boolean needReturnValue()
public final void needReturnValue(boolean retVal)
retVal - Need return value.public Map<UUID,Collection<UUID>> transactionNodes()
public final boolean system()
public boolean storeWriteThrough()
public void storeWriteThrough(boolean storeWriteThrough)
storeWriteThrough - Store write through value.public byte 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.public int txSize()
public boolean onePhaseCommit()
public boolean last()
True if this is last prepare request for node.public IgniteTxState txState()
txState in interface IgniteTxStateAwarepublic void txState(IgniteTxState txState)
txState in interface IgniteTxStateAwaretxState - Transient TX state.public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException
prepareMarshal in class GridCacheMessagectx - IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridCacheMessagectx - Context.ldr - Class loader.IgniteCheckedException - If failed.public boolean addDeploymentInfo()
addDeploymentInfo in class GridDistributedBaseMessagetrue or if deployment info must be added to the the message, false otherwise.public IgniteLogger messageLogger(GridCacheSharedContext ctx)
messageLogger in class GridCacheMessagectx - Context.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 short directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface MessagefieldsCount in class GridCacheIdMessagepublic String toString()
toString in class GridDistributedBaseMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018