public class GridDistributedTxPrepareRequest extends GridDistributedBaseMessage implements IgniteTxStateAware
Modifier and Type | Field and Description |
---|---|
static int |
QUERY_UPDATE_FLAG_MASK |
static int |
STORE_WRITE_THROUGH_FLAG_MASK |
ver
cacheId
addDepInfo, CACHE_MSG_INDEX_FIELD_NAME, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEX
DIRECT_TYPE_SIZE
Constructor and Description |
---|
GridDistributedTxPrepareRequest()
Required by
Externalizable . |
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) |
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,
@Nullable 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 |
queryUpdate() |
void |
queryUpdate(boolean queryUpdate) |
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, version
cacheGroupMessage, cacheId, cacheId, handlerId
appendFlag, classError, deployInfo, error, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lastAffinityChangedTopologyVersion, lastAffinityChangedTopologyVersion, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onAckReceived, onClassError, partition, partitionExchangeMessage, prepare, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, prepareObject, topologyVersion, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTx
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
deployInfo, prepare
public static final int STORE_WRITE_THROUGH_FLAG_MASK
public static final int QUERY_UPDATE_FLAG_MASK
public GridDistributedTxPrepareRequest()
Externalizable
.public GridDistributedTxPrepareRequest(IgniteInternalTx tx, long timeout, @Nullable @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 boolean queryUpdate()
public void queryUpdate(boolean queryUpdate)
queryUpdate
- Query update value.public byte policy()
public void addDhtVersion(IgniteTxKey key, @Nullable @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 IgniteTxStateAware
public void txState(IgniteTxState txState)
txState
in interface IgniteTxStateAware
txState
- Transient TX state.public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException
prepareMarshal
in class GridCacheMessage
ctx
- IgniteCheckedException
- If failed.public void finishUnmarshal(GridCacheSharedContext ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext)
method.finishUnmarshal
in class GridCacheMessage
ctx
- Context.ldr
- Class loader.IgniteCheckedException
- If failed.public boolean addDeploymentInfo()
addDeploymentInfo
in class GridDistributedBaseMessage
true
or if deployment info must be added to the the message, false
otherwise.public IgniteLogger messageLogger(GridCacheSharedContext ctx)
messageLogger
in class GridCacheMessage
ctx
- Context.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo
in interface Message
writeTo
in class GridDistributedBaseMessage
buf
- Byte buffer.writer
- Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom
in interface Message
readFrom
in class GridDistributedBaseMessage
buf
- Byte buffer.reader
- Reader.public short directType()
directType
in interface Message
public byte fieldsCount()
fieldsCount
in interface Message
fieldsCount
in class GridCacheIdMessage
public String toString()
toString
in class GridDistributedBaseMessage
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021