public class IgniteTxHandler extends Object
| Constructor and Description |
|---|
IgniteTxHandler(GridCacheSharedContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finish(GridDistributedTxRemoteAdapter tx,
GridDhtTxPrepareRequest req) |
IgniteInternalFuture<IgniteInternalTx> |
finish(UUID nodeId,
GridNearTxLocal locTx,
GridNearTxFinishRequest req) |
protected void |
finish(UUID nodeId,
IgniteTxRemoteEx tx,
GridDhtTxFinishRequest req) |
IgniteInternalFuture<IgniteInternalTx> |
finishColocatedLocal(boolean commit,
GridNearTxLocal tx) |
IgniteInternalFuture<GridNearTxPrepareResponse> |
prepareColocatedTx(GridNearTxLocal locTx,
GridNearTxPrepareRequest req)
Prepares local colocated tx.
|
IgniteInternalFuture<GridNearTxPrepareResponse> |
prepareNearTx(UUID nearNodeId,
GridNearTxPrepareRequest req,
boolean locReq) |
protected void |
processCheckPreparedTxResponse(UUID nodeId,
GridCacheTxRecoveryResponse res) |
GridNearTxRemote |
startNearRemoteTx(ClassLoader ldr,
UUID nodeId,
GridDhtTxPrepareRequest req)
Called while processing dht tx prepare request.
|
public IgniteTxHandler(GridCacheSharedContext ctx)
ctx - Shared cache context.public IgniteInternalFuture<GridNearTxPrepareResponse> prepareColocatedTx(GridNearTxLocal locTx, GridNearTxPrepareRequest req)
locTx - Local transaction.req - Near prepare request.public IgniteInternalFuture<GridNearTxPrepareResponse> prepareNearTx(UUID nearNodeId, GridNearTxPrepareRequest req, boolean locReq)
nearNodeId - Near node ID that initiated transaction.req - Near prepare request.locReq - Local request flag.@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 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.IgniteTxHeuristicCheckedException@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 processCheckPreparedTxResponse(UUID nodeId, GridCacheTxRecoveryResponse res)
nodeId - Node ID.res - Response.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017