public class GridNearTxLocal extends GridDhtTxLocalAdapter implements GridTimeoutObject, AutoCloseable, MvccCoordinatorChangeAware
| Modifier and Type | Class and Description |
|---|---|
protected class |
GridNearTxLocal.FinishClosure<T>
Post-lock closure.
|
IgniteTxLocalAdapter.PLC1<T>, IgniteTxLocalAdapter.PLC2<T>, IgniteTxLocalAdapter.PMC<T>, IgniteTxLocalAdapter.PostLockClosure1<T>, IgniteTxLocalAdapter.PostLockClosure2<T>, IgniteTxLocalAdapter.PostMissClosure<T>GridMetadataAwareAdapter.EntryKeyIgniteInternalTx.FinalizationStatus| Modifier and Type | Field and Description |
|---|---|
protected boolean |
transform
If this transaction contains transform entries.
|
dhtMap, explicitLock, lockFut, mapped, nearMap, ROLLBACK_FUTCOMMIT_ERR_UPD, commitErr, DONE_FLAG_UPD, doneFlag, implicitRes, minVer, qryEnlisted, syncMode, txStatecctx, concurrency, consistentIdMapper, endVer, implicit, internal, invalidate, isDone, isolation, loc, log, mvccSnapshot, needRetVal, nodeId, onePhaseCommit, startTime, startVer, storeEnabled, subjId, taskName, taskNameHash, threadId, timeout, topVer, txNodes, txSize, writeVer, xidVerID_CNTR, ID_FILTER, MVCC_TRACKER_ID_NA| Constructor and Description |
|---|
GridNearTxLocal()
Empty constructor required for
Externalizable. |
GridNearTxLocal(GridCacheSharedContext ctx,
boolean implicit,
boolean implicitSingle,
boolean sys,
byte plc,
TransactionConcurrency concurrency,
TransactionIsolation isolation,
long timeout,
boolean storeEnabled,
Boolean mvccOp,
int txSize,
@Nullable UUID subjId,
int taskNameHash,
@Nullable String lb,
IgniteTxManager.TxDumpsThrottling txDumpsThrottling,
boolean tracingEnabled) |
| Modifier and Type | Method and Description |
|---|---|
protected IgniteCacheExpiryPolicy |
accessPolicy(GridCacheContext cacheCtx,
Collection<KeyCacheObject> keys) |
protected IgniteCacheExpiryPolicy |
accessPolicy(GridCacheContext ctx,
IgniteTxKey key,
@Nullable javax.cache.expiry.ExpiryPolicy expiryPlc) |
void |
addKeyMapping(IgniteTxKey key,
ClusterNode node)
Adds key mapping to dht mapping.
|
protected IgniteInternalFuture<Boolean> |
addReader(long msgId,
GridDhtCacheEntry cached,
IgniteTxEntry entry,
AffinityTopologyVersion topVer)
Adds reader to cached entry.
|
protected void |
clearPrepareFuture(GridDhtTxPrepareFuture fut)
Removes previously created prepare future from atomic reference.
|
void |
close() |
void |
close(boolean clearThreadMap) |
boolean |
colocated() |
boolean |
colocatedLocallyMapped() |
void |
colocatedLocallyMapped(boolean colocatedLocallyMapped) |
void |
commit() |
IgniteInternalFuture<IgniteInternalTx> |
commitAsync()
Asynchronously commits this transaction by initiating
two-phase-commit process. |
IgniteInternalFuture<IgniteInternalTx> |
commitAsyncLocal()
Commits local part of colocated transaction.
|
IgniteInternalFuture<IgniteInternalTx> |
commitNearTxLocalAsync() |
@Nullable IgniteInternalFuture<?> |
currentPrepareFuture() |
long |
endTime() |
void |
enterSystemSection()
Enters the section when system time for this transaction is counted.
|
protected GridCacheEntryEx |
entryEx(GridCacheContext cacheCtx,
IgniteTxKey key)
Gets cache entry for given key.
|
protected GridCacheEntryEx |
entryEx(GridCacheContext cacheCtx,
IgniteTxKey key,
AffinityTopologyVersion topVer)
Gets cache entry for given key and topology version.
|
<K,V> IgniteInternalFuture<Map<K,V>> |
getAllAsync(GridCacheContext cacheCtx,
@Nullable AffinityTopologyVersion entryTopVer,
Collection<KeyCacheObject> keys,
boolean deserializeBinary,
boolean skipVals,
boolean keepCacheObjects,
boolean skipStore,
boolean recovery,
boolean readRepair,
boolean needVer) |
boolean |
hasRemoteLocks() |
void |
hasRemoteLocks(boolean hasRemoteLocks) |
<K,V> IgniteInternalFuture<GridCacheReturn> |
invokeAsync(GridCacheContext cacheCtx,
@Nullable AffinityTopologyVersion entryTopVer,
K key,
javax.cache.processor.EntryProcessor<K,V,Object> entryProcessor,
Object... invokeArgs) |
<K,V,T> IgniteInternalFuture<GridCacheReturn> |
invokeAsync(GridCacheContext cacheCtx,
@Nullable AffinityTopologyVersion entryTopVer,
@Nullable Map<? extends K,? extends javax.cache.processor.EntryProcessor<K,V,Object>> map,
Object... invokeArgs) |
boolean |
isOperationAllowed(boolean mvccOp) |
String |
label()
Returns label of transactions.
|
void |
leaveSystemSection()
Leaves the section when system time for this transaction is counted.
|
boolean |
localFinish(boolean commit,
boolean clearThreadMap)
Finishes transaction (either commit or rollback).
|
<K> IgniteInternalFuture<GridCacheReturn> |
lockAllAsync(GridCacheContext cacheCtx,
Collection<? extends K> keys,
boolean retval,
boolean read,
long createTtl,
long accessTtl,
boolean skipStore,
boolean keepBinary) |
IgniteTxMappings |
mappings() |
boolean |
markExplicit(UUID nodeId) |
void |
mvccSnapshot(MvccSnapshot mvccSnapshot) |
boolean |
near() |
protected IgniteUuid |
nearFutureId() |
boolean |
nearLocallyMapped() |
protected UUID |
nearNodeId() |
GridCacheVersion |
nearXidVersion() |
long |
onMvccCoordinatorChange(MvccCoordinator newCrd)
Mvcc coordinator change callback.
|
boolean |
onOwnerChanged(GridCacheEntryEx entry,
GridCacheMvccCandidate owner)
Callback invoked whenever there is a lock that has been acquired
by this transaction for any of the participating entries.
|
void |
onRemap(AffinityTopologyVersion topVer,
boolean reset) |
void |
onTimeout()
Timeout callback.
|
Collection<IgniteTxEntry> |
optimisticLockEntries()
Gets a list of entries that needs to be locked on the next step of prepare stage of
optimistic transaction.
|
boolean |
ownsLock(GridCacheEntryEx entry) |
boolean |
ownsLockUnsafe(GridCacheEntryEx entry) |
void |
prepare(boolean awaitLastFuture) |
IgniteInternalFuture<GridNearTxPrepareResponse> |
prepareAsyncLocal(GridNearTxPrepareRequest req)
Prepares next batch of entries in dht transaction.
|
IgniteInternalFuture<?> |
prepareNearTxLocal() |
TransactionProxy |
proxy() |
<K,V> IgniteInternalFuture<GridCacheReturn> |
putAllAsync(GridCacheContext cacheCtx,
@Nullable AffinityTopologyVersion entryTopVer,
Map<? extends K,? extends V> map,
boolean retval) |
IgniteInternalFuture<?> |
putAllDrAsync(GridCacheContext cacheCtx,
Map<KeyCacheObject,GridCacheDrInfo> drMap) |
<K,V> IgniteInternalFuture<GridCacheReturn> |
putAsync(GridCacheContext cacheCtx,
@Nullable AffinityTopologyVersion entryTopVer,
K key,
V val,
boolean retval,
CacheEntryPredicate filter) |
boolean |
queryEnlisted() |
<K,V> IgniteInternalFuture<GridCacheReturn> |
removeAllAsync(GridCacheContext cacheCtx,
@Nullable AffinityTopologyVersion entryTopVer,
Collection<? extends K> keys,
boolean retval,
CacheEntryPredicate filter,
boolean singleRmv) |
IgniteInternalFuture<?> |
removeAllDrAsync(GridCacheContext cacheCtx,
Map<KeyCacheObject,GridCacheVersion> drMap) |
boolean |
removeMapping(UUID nodeId) |
IgniteInternalFuture<MvccSnapshot> |
requestSnapshot()
Requests version on coordinator.
|
void |
resume()
Resumes transaction (possibly in another thread) if it was previously suspended.
|
void |
rollback() |
IgniteInternalFuture<IgniteInternalTx> |
rollbackAsync()
Asynchronously rollback this transaction.
|
IgniteInternalFuture<IgniteInternalTx> |
rollbackAsyncLocal()
Rolls back local part of colocated transaction.
|
IgniteInternalFuture<IgniteInternalTx> |
rollbackNearTxLocalAsync() |
IgniteInternalFuture<IgniteInternalTx> |
rollbackNearTxLocalAsync(boolean clearThreadMap,
boolean onTimeout) |
TransactionProxy |
rollbackOnlyProxy() |
IgniteInternalFuture<?> |
salvageTx() |
protected void |
sendFinishReply(@Nullable Throwable err) |
boolean |
state(TransactionState state) |
void |
suspend()
Suspends transaction.
|
long |
systemTimeCurrent()
Returns current amount of time that transaction has spent on system activities (acquiring locks, commiting,
rolling back, etc.)
|
void |
threadId(long threadId) |
long |
timeout(long timeout)
Sets transaction timeout value.
|
IgniteUuid |
timeoutId() |
String |
toString() |
IgniteInternalFuture<Long> |
updateAsync(GridCacheContext cacheCtx,
int[] cacheIds,
int[] parts,
String schema,
String qry,
Object[] params,
int flags,
int pageSize,
long timeout) |
IgniteInternalFuture<Long> |
updateAsync(GridCacheContext cacheCtx,
UpdateSourceIterator<?> it,
int pageSize,
long timeout,
boolean sequential) |
protected void |
updateExplicitVersion(IgniteTxEntry txEntry,
GridCacheEntryEx entry)
Updates explicit version for tx entry based on current entry lock owner.
|
addEntry, addInvalidPartition, chainOnePhasePrepare, clearLockFuture, commitOnPrepare, explicitLock, explicitLock, finishFuture, incrementLockCounter, lockCounter, lockFuture, mapExplicitLocks, nearOnOriginatingNode, needsCompletedVersions, pendingVersions, span, span, tryRollbackAsync, updateLockFutureactiveCachesDeploymentEnabled, activeCachesDeploymentEnabled, addActiveCache, addEntry, addInvokeResult, allEntries, alternateVersions, calculatePartitionUpdateCounters, checkValid, checkValid, commitAfterLock, commitError, commitError, committedVersions, completedBase, completedVersions, empty, entry, entryExpireTime, entryTtl, eventNodeId, hasInterceptor, hasWriteKey, implicitSingleResult, init, initResult, isStarted, markQueryEnlisted, masterNodeIds, minVersion, originatingNodeId, partsMap, peek, postLockWrite, readEntries, readMap, readSet, rolledbackVersions, seal, sendTransformedValues, syncMode, syncMode, tmFinish, touchPartition, txState, userCommit, userPrepare, userRollback, writeEntries, writeMap, writeSetapplyTransformClosures, applyTxSizes, batchStoreCommit, chainState, checkInternal, commitVersion, commitVersion, concurrency, conflictResolve, context, dht, done, endVersion, equals, errorWhenCommitting, evictNearEntry, finalizationStatus, finishFuture, hashCode, heuristicException, implicit, implicitSingle, internal, invalidate, invalidPartitions, ioPolicy, isInvalidate, isNearLocallyMapped, isolation, isRollbackOnly, isSystemInvalidate, isWriteToStoreFromDhtValid, local, localResult, log, logTxFinishErrorSafe, markFinalizing, mvccSnapshot, needReturnValue, needReturnValue, nodeId, onePhaseCommit, onePhaseCommit, optimistic, otherNodeId, ownedVersion, pessimistic, readCommitted, readExternal, readResolve, recordStateChangedEvent, remainingTime, remote, repeatableRead, resolveTaskName, rollbackException, rollbackFuture, rollbackFuture, serializable, sessionEnd, setParentTx, setRollbackOnly, size, skipCompletedVersions, skipCompletedVersions, startTime, state, state, storeEnabled, storeEnabled, storeWriteThrough, subjectId, system, systemInvalidate, taskNameHash, threadId, timedOut, timeout, timeoutException, topologyVersion, topologyVersion, topologyVersionSnapshot, transactionNodes, transactionNodes, txCounters, uncommit, updateNearCache, user, writeExternal, writeVersion, writeVersion, xid, xidVersionaddMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, clone, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, readExternalMeta, removeAllMeta, removeMeta, removeMeta, replaceMeta, writeExternalMetafinalize, getClass, notify, notifyAll, wait, wait, waitaddMeta, commitVersion, commitVersion, concurrency, dht, done, endVersion, errorWhenCommitting, finalizationStatus, finishFuture, implicit, implicitSingle, internal, invalidate, invalidPartitions, ioPolicy, isInvalidate, isolation, isRollbackOnly, isSystemInvalidate, local, localResult, markFinalizing, meta, mvccSnapshot, nodeId, onePhaseCommit, optimistic, otherNodeId, ownedVersion, pessimistic, readCommitted, remainingTime, removeMeta, repeatableRead, serializable, setRollbackOnly, size, startTime, state, storeEnabled, storeWriteThrough, subjectId, system, systemInvalidate, taskNameHash, threadId, timedOut, timeout, topologyVersion, topologyVersion, topologyVersionSnapshot, transactionNodes, txCounters, user, writeVersion, writeVersion, xid, xidVersionpublic GridNearTxLocal()
Externalizable.public GridNearTxLocal(GridCacheSharedContext ctx, boolean implicit, boolean implicitSingle, boolean sys, byte plc, TransactionConcurrency concurrency, TransactionIsolation isolation, long timeout, boolean storeEnabled, Boolean mvccOp, int txSize, @Nullable @Nullable UUID subjId, int taskNameHash, @Nullable @Nullable String lb, IgniteTxManager.TxDumpsThrottling txDumpsThrottling, boolean tracingEnabled)
ctx - Cache registry.implicit - Implicit flag.implicitSingle - Implicit with one key flag.sys - System flag.plc - IO policy.concurrency - Concurrency.isolation - Isolation.timeout - Timeout.storeEnabled - Store enabled flag.mvccOp - Whether this transaction was started via SQL API or not, or null if unknown.txSize - Transaction size.subjId - Subject ID.taskNameHash - Task name hash code.lb - Label.txDumpsThrottling - Log throttling information.tracingEnabled - true if the transaction should be traced.public boolean near()
near in interface IgniteInternalTxnear in class IgniteTxAdapterTrue if near transaction.public boolean colocated()
colocated in interface IgniteInternalTxcolocated in class IgniteTxAdapterTrue if dht colocated transaction.public GridCacheVersion nearXidVersion()
nearXidVersion in interface IgniteInternalTxnearXidVersion in class IgniteTxAdapterprotected UUID nearNodeId()
nearNodeId in class GridDhtTxLocalAdapterprotected IgniteUuid nearFutureId()
nearFutureId in class GridDhtTxLocalAdapterprotected IgniteInternalFuture<Boolean> addReader(long msgId, GridDhtCacheEntry cached, IgniteTxEntry entry, AffinityTopologyVersion topVer)
addReader in class GridDhtTxLocalAdaptermsgId - Message ID.cached - Cached entry.entry - Transaction entry.topVer - Topology version.True if reader was added as a result of this call.protected void sendFinishReply(@Nullable
@Nullable Throwable err)
sendFinishReply in class GridDhtTxLocalAdaptererr - Error, if any.protected void clearPrepareFuture(GridDhtTxPrepareFuture fut)
clearPrepareFuture in class GridDhtTxLocalAdapterfut - Expected future.public boolean nearLocallyMapped()
True if transaction contains at least one near cache key mapped to the local node.public boolean colocatedLocallyMapped()
True if transaction contains colocated key mapped to the local node.public void colocatedLocallyMapped(boolean colocatedLocallyMapped)
colocatedLocallyMapped - True if transaction contains colocated key mapped to the local node.public boolean ownsLockUnsafe(GridCacheEntryEx entry)
ownsLockUnsafe in interface IgniteInternalTxownsLockUnsafe in class IgniteTxAdapterentry - Entry to check.True if lock is owned.public long timeout(long timeout)
timeout in interface IgniteInternalTxtimeout in class IgniteTxAdaptertimeout - Transaction timeout value.public boolean ownsLock(GridCacheEntryEx entry) throws GridCacheEntryRemovedException
ownsLock in interface IgniteInternalTxownsLock in class IgniteTxAdapterentry - Entry to check.True if lock is owned.GridCacheEntryRemovedException - If entry has been removed.public <K,V> IgniteInternalFuture<GridCacheReturn> putAllAsync(GridCacheContext cacheCtx, @Nullable @Nullable AffinityTopologyVersion entryTopVer, Map<? extends K,? extends V> map, boolean retval)
cacheCtx - Cache context.map - Map to put.retval - Flag indicating whether a value should be returned.public final <K,V> IgniteInternalFuture<GridCacheReturn> putAsync(GridCacheContext cacheCtx, @Nullable @Nullable AffinityTopologyVersion entryTopVer, K key, V val, boolean retval, CacheEntryPredicate filter)
cacheCtx - Cache context.key - Key.val - Value.retval - Return value flag.filter - Filter.public <K,V> IgniteInternalFuture<GridCacheReturn> invokeAsync(GridCacheContext cacheCtx, @Nullable @Nullable AffinityTopologyVersion entryTopVer, K key, javax.cache.processor.EntryProcessor<K,V,Object> entryProcessor, Object... invokeArgs)
cacheCtx - Cache context.key - Key.entryProcessor - Entry processor.invokeArgs - Optional arguments for entry processor.public <K,V,T> IgniteInternalFuture<GridCacheReturn> invokeAsync(GridCacheContext cacheCtx, @Nullable @Nullable AffinityTopologyVersion entryTopVer, @Nullable @Nullable Map<? extends K,? extends javax.cache.processor.EntryProcessor<K,V,Object>> map, Object... invokeArgs)
cacheCtx - Cache context.map - Entry processors map.invokeArgs - Optional arguments for entry processor.public IgniteInternalFuture<?> putAllDrAsync(GridCacheContext cacheCtx, Map<KeyCacheObject,GridCacheDrInfo> drMap)
cacheCtx - Cache context.drMap - DR map to put.public IgniteInternalFuture<?> removeAllDrAsync(GridCacheContext cacheCtx, Map<KeyCacheObject,GridCacheVersion> drMap)
cacheCtx - Cache context.drMap - DR map.public <K,V> IgniteInternalFuture<GridCacheReturn> removeAllAsync(GridCacheContext cacheCtx, @Nullable @Nullable AffinityTopologyVersion entryTopVer, Collection<? extends K> keys, boolean retval, CacheEntryPredicate filter, boolean singleRmv)
cacheCtx - Cache context.keys - Keys to remove.retval - Flag indicating whether a value should be returned.filter - Filter.singleRmv - True for single key remove operation (Cache.remove(Object).public IgniteInternalFuture<Long> updateAsync(GridCacheContext cacheCtx, int[] cacheIds, int[] parts, String schema, String qry, Object[] params, int flags, int pageSize, long timeout)
cacheCtx - Cache context.cacheIds - Involved cache ids.parts - Partitions.schema - Schema name.qry - Query string.params - Query parameters.flags - Flags.pageSize - Fetch page size.timeout - Timeout.public IgniteInternalFuture<Long> updateAsync(GridCacheContext cacheCtx, UpdateSourceIterator<?> it, int pageSize, long timeout, boolean sequential)
cacheCtx - Cache context.it - Entries iterator.pageSize - Page size.timeout - Timeout.sequential - Sequential locking flag.public <K,V> IgniteInternalFuture<Map<K,V>> getAllAsync(GridCacheContext cacheCtx, @Nullable @Nullable AffinityTopologyVersion entryTopVer, Collection<KeyCacheObject> keys, boolean deserializeBinary, boolean skipVals, boolean keepCacheObjects, boolean skipStore, boolean recovery, boolean readRepair, boolean needVer)
cacheCtx - Cache context.keys - Keys to get.deserializeBinary - Deserialize binary flag.skipVals - Skip values flag.keepCacheObjects - Keep cache objectsskipStore - Skip store flag.readRepair - Read Repair flag.public Collection<IgniteTxEntry> optimisticLockEntries()
optimisticLockEntries in interface IgniteInternalTxoptimisticLockEntries in class IgniteTxAdapterprotected void updateExplicitVersion(IgniteTxEntry txEntry, GridCacheEntryEx entry) throws GridCacheEntryRemovedException
updateExplicitVersion in class IgniteTxLocalAdaptertxEntry - Tx entry to update.entry - Entry.GridCacheEntryRemovedException - If entry was concurrently removed.public IgniteTxMappings mappings()
public boolean removeMapping(UUID nodeId)
removeMapping in class GridDhtTxLocalAdapternodeId - Undo mapping.True if mapping was removed.public boolean queryEnlisted()
queryEnlisted in class IgniteTxLocalAdapterTrue if there are entries, enlisted by query.public IgniteInternalFuture<MvccSnapshot> requestSnapshot()
public long onMvccCoordinatorChange(MvccCoordinator newCrd)
onMvccCoordinatorChange in interface MvccCoordinatorChangeAwarenewCrd - New mvcc coordinator.public void mvccSnapshot(MvccSnapshot mvccSnapshot)
mvccSnapshot in interface IgniteInternalTxmvccSnapshot in class IgniteTxAdaptermvccSnapshot - Mvcc snapshot.public void addKeyMapping(IgniteTxKey key, ClusterNode node)
key - Key to add.node - Node this key mapped to.public void suspend()
throws IgniteCheckedException
IgniteCheckedException - If the transaction is in an incorrect state, or timed out.public void resume()
throws IgniteCheckedException
IgniteCheckedException - If the transaction is in an incorrect state, or timed out.public boolean markExplicit(UUID nodeId)
nodeId - Node ID to mark with explicit lock.True if mapping was found.public boolean onOwnerChanged(GridCacheEntryEx entry, GridCacheMvccCandidate owner)
onOwnerChanged in interface IgniteInternalTxonOwnerChanged in class IgniteTxLocalAdapterentry - Cache entry.owner - Lock candidate that won ownership of the lock.True if transaction cared about notification.public boolean localFinish(boolean commit,
boolean clearThreadMap)
throws IgniteCheckedException
localFinish in interface IgniteTxLocalExlocalFinish in class GridDhtTxLocalAdaptercommit - True if commit, false if rollback.clearThreadMap - If true removes GridNearTxLocal from thread map.True if state has been changed.IgniteCheckedException - If finish failed.public long systemTimeCurrent()
public boolean state(TransactionState state)
state in interface IgniteInternalTxstate in class IgniteTxAdapterstate - Transaction state.True if transition was valid, false otherwise.public IgniteInternalFuture<?> prepareNearTxLocal()
public IgniteInternalFuture<?> salvageTx()
salvageTx in interface IgniteInternalTxpublic final void prepare(boolean awaitLastFuture)
throws IgniteCheckedException
awaitLastFuture - If true - method will wait until transaction finish every action started before.IgniteCheckedException - If failed.public void commit()
throws IgniteCheckedException
IgniteCheckedException - If failed.public IgniteInternalFuture<IgniteInternalTx> commitNearTxLocalAsync()
public IgniteInternalFuture<IgniteInternalTx> commitAsync()
two-phase-commit process.commitAsync in interface IgniteInternalTxpublic void rollback()
throws IgniteCheckedException
IgniteCheckedException - If failed.public IgniteInternalFuture<IgniteInternalTx> rollbackNearTxLocalAsync()
public IgniteInternalFuture<IgniteInternalTx> rollbackNearTxLocalAsync(boolean clearThreadMap, boolean onTimeout)
clearThreadMap - True if needed to clear thread map.onTimeout - True if called from timeout handler.
Note: For async rollbacks (from timeouts or another thread) should not clear thread map
since thread started tx still should be able to see this tx to prevent subsequent operations.public IgniteInternalFuture<IgniteInternalTx> rollbackAsync()
rollbackAsync in interface IgniteInternalTxpublic IgniteInternalFuture<GridNearTxPrepareResponse> prepareAsyncLocal(GridNearTxPrepareRequest req)
req - Prepare request.public IgniteInternalFuture<IgniteInternalTx> commitAsyncLocal()
public IgniteInternalFuture<IgniteInternalTx> rollbackAsyncLocal()
public <K> IgniteInternalFuture<GridCacheReturn> lockAllAsync(GridCacheContext cacheCtx, Collection<? extends K> keys, boolean retval, boolean read, long createTtl, long accessTtl, boolean skipStore, boolean keepBinary)
K - Key type.cacheCtx - Cache context.keys - Keys.retval - Return value flag.read - Read flag.createTtl - Create ttl.accessTtl - Access ttl.skipStore - Skip store flag.keepBinary - Keep binary flag.protected GridCacheEntryEx entryEx(GridCacheContext cacheCtx, IgniteTxKey key)
entryEx in class IgniteTxLocalAdaptercacheCtx - Cache context.key - Key.protected GridCacheEntryEx entryEx(GridCacheContext cacheCtx, IgniteTxKey key, AffinityTopologyVersion topVer)
entryEx in class IgniteTxLocalAdaptercacheCtx - Cache context.key - Key.topVer - Topology version.protected IgniteCacheExpiryPolicy accessPolicy(GridCacheContext ctx, IgniteTxKey key, @Nullable @Nullable javax.cache.expiry.ExpiryPolicy expiryPlc)
accessPolicy in class IgniteTxLocalAdapterctx - Cache context.key - Key.expiryPlc - Expiry policy.protected IgniteCacheExpiryPolicy accessPolicy(GridCacheContext cacheCtx, Collection<KeyCacheObject> keys)
accessPolicy in class IgniteTxLocalAdaptercacheCtx - Cache context.keys - Keys.public void close()
throws IgniteCheckedException
close in interface AutoCloseableIgniteCheckedExceptionpublic void close(boolean clearThreadMap)
throws IgniteCheckedException
clearThreadMap - Clear thread map.IgniteCheckedException@Nullable public @Nullable IgniteInternalFuture<?> currentPrepareFuture()
currentPrepareFuture in interface IgniteInternalTxcurrentPrepareFuture in class IgniteTxAdapterpublic void onRemap(AffinityTopologyVersion topVer, boolean reset)
topVer - New topology version.reset - True if need to reset tx state.public void hasRemoteLocks(boolean hasRemoteLocks)
hasRemoteLocks - True if tx has remote locks acquired.public boolean hasRemoteLocks()
True if tx has remote locks acquired.public boolean isOperationAllowed(boolean mvccOp)
true if this transaction does not have type flag set or it matches invoking operation,
false otherwise.public TransactionProxy proxy()
public TransactionProxy rollbackOnlyProxy()
public void threadId(long threadId)
threadId - new owner of transaction.public IgniteUuid timeoutId()
timeoutId in interface GridTimeoutObjectpublic long endTime()
endTime in interface GridTimeoutObjectpublic String label()
label in interface IgniteInternalTxnull if there was not set.public void onTimeout()
onTimeout in interface GridTimeoutObjectpublic void enterSystemSection()
public void leaveSystemSection()
public String toString()
toString in class GridDhtTxLocalAdapter
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020