Class GridDistributedTxFinishResponse
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.GridCacheMessage
-
- org.apache.ignite.internal.processors.cache.distributed.GridDistributedTxFinishResponse
-
- All Implemented Interfaces:
Serializable,Message
- Direct Known Subclasses:
GridDhtTxFinishResponse,GridNearTxFinishResponse
public class GridDistributedTxFinishResponse extends GridCacheMessage
Transaction finish response.- See Also:
- Serialized Form
-
-
Field Summary
-
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 GridDistributedTxFinishResponse()Empty constructor required byGridIoMessageFactory.GridDistributedTxFinishResponse(int part, GridCacheVersion txId, IgniteUuid futId)
-
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.IgniteUuidfutureId()inthandlerId()protected booleanisFlag(int mask)Reags flag mask.IgniteLoggermessageLogger(GridCacheSharedContext<?,?> ctx)intpartition()booleanreadFrom(ByteBuffer buf, MessageReader reader)Reads this message from provided byte buffer.protected voidsetFlag(boolean flag, int mask)Sets flag mask.StringtoString()booleanwriteTo(ByteBuffer buf, MessageWriter writer)Writes this message to provided byte buffer.GridCacheVersionxid()-
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, nextIndexId, onAckReceived, onClassError, partitionExchangeMessage, prepare, prepareMarshal, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, prepareObject, topologyVersion, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTx
-
-
-
-
Constructor Detail
-
GridDistributedTxFinishResponse
public GridDistributedTxFinishResponse()
Empty constructor required byGridIoMessageFactory.
-
GridDistributedTxFinishResponse
public GridDistributedTxFinishResponse(int part, GridCacheVersion txId, IgniteUuid futId)- Parameters:
part- Partition.txId- Transaction id.futId- Future ID.
-
-
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.
-
partition
public final int partition()
- Overrides:
partitionin classGridCacheMessage- Returns:
- Partition ID this message is targeted to or
-1if it cannot be determined.
-
setFlag
protected final void setFlag(boolean flag, int mask)Sets flag mask.- Parameters:
flag- Set or clear.mask- Mask.
-
isFlag
protected final boolean isFlag(int mask)
Reags flag mask.- Parameters:
mask- Mask to read.- Returns:
- Flag value.
-
xid
public GridCacheVersion xid()
- Returns:
- Transaction id.
-
futureId
public IgniteUuid futureId()
- Returns:
- Future ID.
-
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.
-
messageLogger
public IgniteLogger messageLogger(GridCacheSharedContext<?,?> ctx)
- Overrides:
messageLoggerin classGridCacheMessage- Parameters:
ctx- Context.- Returns:
- Logger.
-
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.
-
toString
public String toString()
- Overrides:
toStringin classGridCacheMessage
-
-