Class GridDhtTxOnePhaseCommitAckRequest
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.GridCacheMessage
-
- org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtTxOnePhaseCommitAckRequest
-
- All Implemented Interfaces:
Serializable,Message
public class GridDhtTxOnePhaseCommitAckRequest extends GridCacheMessage
One Phase Commit Near transaction ack request.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<GridCacheVersion>versLock or transaction versions.-
Fields inherited from class org.apache.ignite.internal.processors.cache.GridCacheMessage
addDepInfo, CACHE_MSG_INDEX_FIELD_NAME, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEX
-
Fields inherited from interface org.apache.ignite.plugin.extensions.communication.Message
DIRECT_TYPE_SIZE
-
-
Constructor Summary
Constructors Constructor Description GridDhtTxOnePhaseCommitAckRequest()Default constructor.GridDhtTxOnePhaseCommitAckRequest(Collection<GridCacheVersion> vers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddDeploymentInfo()Deployment enabled flag indicates whether deployment info has to be added to this message.booleancacheGroupMessage()shortdirectType()Gets message type.bytefieldsCount()Gets fields count.inthandlerId()booleanreadFrom(ByteBuffer buf, MessageReader reader)Reads this message from provided byte buffer.StringtoString()Collection<GridCacheVersion>versions()booleanwriteTo(ByteBuffer buf, MessageWriter writer)Writes this message to provided byte buffer.-
Methods inherited from class org.apache.ignite.internal.processors.cache.GridCacheMessage
appendFlag, classError, deployInfo, error, finishUnmarshal, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lastAffinityChangedTopologyVersion, lastAffinityChangedTopologyVersion, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, messageLogger, nextIndexId, onAckReceived, onClassError, partition, partitionExchangeMessage, prepare, prepareMarshal, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, prepareObject, topologyVersion, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTx
-
-
-
-
Field Detail
-
vers
@GridToStringInclude protected Collection<GridCacheVersion> vers
Lock or transaction versions.
-
-
Constructor Detail
-
GridDhtTxOnePhaseCommitAckRequest
public GridDhtTxOnePhaseCommitAckRequest()
Default constructor.
-
GridDhtTxOnePhaseCommitAckRequest
public GridDhtTxOnePhaseCommitAckRequest(Collection<GridCacheVersion> vers)
- Parameters:
vers- Near Tx xid Versions.
-
-
Method Detail
-
handlerId
public int handlerId()
- Specified by:
handlerIdin classGridCacheMessage- Returns:
- ID to distinguish message handlers for the same messages but for different caches/cache groups.
-
cacheGroupMessage
public boolean cacheGroupMessage()
- Specified by:
cacheGroupMessagein classGridCacheMessage- Returns:
Trueif cache group message.
-
versions
public Collection<GridCacheVersion> versions()
- Returns:
- Version.
-
toString
public String toString()
- Overrides:
toStringin classGridCacheMessage
-
addDeploymentInfo
public boolean addDeploymentInfo()
Deployment enabled flag indicates whether deployment info has to be added to this message.- Specified by:
addDeploymentInfoin classGridCacheMessage- Returns:
trueor if deployment info must be added to the the message,falseotherwise.
-
writeTo
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
Writes this message to provided byte buffer.- Specified by:
writeToin interfaceMessage- Overrides:
writeToin classGridCacheMessage- Parameters:
buf- Byte buffer.writer- Writer.- Returns:
- Whether message was fully written.
-
readFrom
public boolean readFrom(ByteBuffer buf, MessageReader reader)
Reads this message from provided byte buffer.- Specified by:
readFromin interfaceMessage- Overrides:
readFromin classGridCacheMessage- Parameters:
buf- Byte buffer.reader- Reader.- Returns:
- Whether message was fully read.
-
directType
public short directType()
Gets message type.- Returns:
- Message type.
-
fieldsCount
public byte fieldsCount()
Gets fields count.- Specified by:
fieldsCountin interfaceMessage- Overrides:
fieldsCountin classGridCacheMessage- Returns:
- Fields count.
-
-