public class IgniteTxHandler extends Object
| Constructor and Description |
|---|
IgniteTxHandler(GridCacheSharedContext ctx) |
public IgniteTxHandler(GridCacheSharedContext ctx)
ctx - Shared cache context.public IgniteInternalFuture<?> processNearTxPrepareRequest(UUID nearNodeId, GridNearTxPrepareRequest req)
nearNodeId - Node ID.req - Request.public IgniteInternalFuture<GridNearTxPrepareResponse> prepareTx(UUID nearNodeId, @Nullable GridNearTxLocal locTx, GridNearTxPrepareRequest req)
nearNodeId - Near node ID that initiated transaction.locTx - Optional local transaction.req - Near prepare request.@Nullable public IgniteInternalFuture<IgniteInternalTx> finish(UUID nodeId, @Nullable GridNearTxLocal locTx, GridNearTxFinishRequest req)
nodeId - Node ID.locTx - Local transaction.req - Request.public IgniteInternalFuture<IgniteInternalTx> finishColocatedLocal(boolean commit, GridNearTxLocal tx)
commit - Commit flag (rollback if false).tx - Transaction to commit.protected final void processDhtTxPrepareRequest(UUID nodeId, GridDhtTxPrepareRequest req)
nodeId - Sender node ID.req - Request.protected final void processDhtTxOnePhaseCommitAckRequest(UUID nodeId, GridDhtTxOnePhaseCommitAckRequest req)
nodeId - Node ID.req - Request.protected final void processDhtTxFinishRequest(UUID nodeId, GridDhtTxFinishRequest req)
nodeId - Node ID.req - Request.protected void finish(UUID nodeId, IgniteTxRemoteEx tx, GridDhtTxFinishRequest req)
nodeId - Node ID.tx - Transaction.req - Request.protected void finish(GridDistributedTxRemoteAdapter tx, GridDhtTxPrepareRequest req) throws IgniteTxHeuristicCheckedException
tx - Transaction.req - Request.IgniteTxHeuristicCheckedExceptionprotected void sendReply(UUID nodeId, GridDhtTxPrepareRequest req, GridDhtTxPrepareResponse res, GridDhtTxRemote dhtTx, GridNearTxRemote nearTx)
nodeId - Node id.req - Request.res - Response.dhtTx - Dht tx.nearTx - Near tx.protected void sendReply(UUID nodeId, GridDhtTxFinishRequest req, boolean committed, GridCacheVersion nearTxId)
nodeId - Node id that originated finish request.req - Request.committed - True if transaction committed on this node.nearTxId - Near tx version.@Nullable public GridNearTxRemote startNearRemoteTx(ClassLoader ldr, UUID nodeId, GridDhtTxPrepareRequest req) throws IgniteCheckedException
ldr - Loader.nodeId - Sender node ID.req - Request.IgniteCheckedException - If failed.protected void processCheckPreparedTxRequest(UUID nodeId, GridCacheTxRecoveryRequest req)
nodeId - Node ID.req - Request.protected void processCheckPreparedTxResponse(UUID nodeId, GridCacheTxRecoveryResponse res)
nodeId - Node ID.res - Response.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017