public class GridDistributedTxPrepareRequest extends GridDistributedBaseMessage implements IgniteTxStateAware
| Modifier and Type | Field and Description |
|---|---|
static C1<Collection<UUID>,UUIDCollectionMessage> |
COL_TO_MSG
Collection to message converter.
|
static C1<UUIDCollectionMessage,Collection<UUID>> |
MSG_TO_COL
Message to collection converter.
|
static IgniteProductVersion |
TX_NODES_DIRECT_MARSHALLABLE_SINCE
Version in which direct marshalling of tx nodes was introduced.
|
veraddDepInfo, CACHE_MSG_INDEX_FIELD_NAME, cacheId, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEX| Constructor and Description |
|---|
GridDistributedTxPrepareRequest()
Required by
Externalizable. |
GridDistributedTxPrepareRequest(IgniteInternalTx tx,
long timeout,
Collection<IgniteTxEntry> reads,
Collection<IgniteTxEntry> writes,
Map<UUID,Collection<UUID>> txNodes,
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() |
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. |
boolean |
isInvalidate() |
TransactionIsolation |
isolation() |
IgniteLogger |
messageLogger(GridCacheSharedContext ctx) |
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 |
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, keysCount, rolledbackVersions, version, versioncacheId, cacheId, classError, deployInfo, error, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onAckReceived, onClassError, partition, partitionExchangeMessage, prepare, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, topologyVersion, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic static final IgniteProductVersion TX_NODES_DIRECT_MARSHALLABLE_SINCE
public static final C1<Collection<UUID>,UUIDCollectionMessage> COL_TO_MSG
public static final C1<UUIDCollectionMessage,Collection<UUID>> MSG_TO_COL
public GridDistributedTxPrepareRequest()
Externalizable.public GridDistributedTxPrepareRequest(IgniteInternalTx tx, long timeout, @Nullable Collection<IgniteTxEntry> reads, Collection<IgniteTxEntry> writes, Map<UUID,Collection<UUID>> txNodes, boolean onePhaseCommit, boolean addDepInfo)
tx - Cache transaction.timeout - Transactions timeout.reads - Read entries.writes - Write entries.txNodes - Transaction nodes mapping.onePhaseCommit - One phase commit flag.addDepInfo - Deployment info flag.public Map<UUID,Collection<UUID>> transactionNodes()
public boolean system()
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 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 byte directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Messagepublic String toString()
toString in class GridDistributedBaseMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017