public interface GridCacheTxLocalEx<K,V> extends GridCacheTxEx<K,V>
GridCacheTxEx.FinalizationStatusaddInvalidPartition, addLocalCandidates, allEntries, alternateVersions, colocated, commitVersion, commitVersion, completedVersions, dht, done, empty, endVersion, endVersion, enforceSerializable, entry, eventNodeId, finishFuture, groupLock, groupLockKey, hasReadKey, hasWriteKey, implicitSingle, internal, invalidate, invalidPartitions, isSystemInvalidate, local, localCandidates, markFinalizing, markPreparing, masterNodeIds, near, nearXidVersion, needsCompletedVersions, onePhaseCommit, onOwnerChanged, optimistic, optimisticLockEntries, originatingNodeId, otherNodeId, ownedVersion, ownsLock, ownsLockUnsafe, peek, pessimistic, prepare, prepareAsync, readCommitted, readEntries, readMap, readSet, recoveryWrites, remainingTime, removed, repeatableRead, replicated, rollbackAsync, seal, serializable, size, startVersion, state, subjectId, syncCommit, syncRollback, systemInvalidate, timedOut, topologyVersion, topologyVersion, transactionNodes, user, writeEntries, writeMap, writeSet, writeVersion, writeVersion, xidVersionclose, commit, commitAsync, concurrency, implicit, isInvalidate, isolation, isRollbackOnly, nodeId, rollback, setRollbackOnly, startTime, state, threadId, timeout, timeout, xidaddMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, putMetaIfAbsent, removeMeta, removeMeta, replaceMetaendTime, onTimeout, timeoutIdGridCacheVersion minVersion()
GridFuture<GridCacheTxEx<K,V>> future()
void commitError(Throwable e)
e - Commit error.void userCommit()
throws GridException
GridException - If commit failed.void userRollback()
throws GridException
GridException - If rollback failed.@Nullable GridCacheTxEntry<K,V> groupLockEntry()
GridFuture<Map<K,V>> getAllAsync(Collection<? extends K> keys, @Nullable GridCacheEntryEx<K,V> cached, GridPredicate<GridCacheEntry<K,V>>[] filter)
keys - Keys to get.cached - Cached entry if this method is called from entry wrapper.
Cached entry is passed if and only if there is only one key in collection of keys.filter - Entry filter.V put(K key, V val, @Nullable GridCacheEntryEx<K,V> cached, long ttl, GridPredicate<GridCacheEntry<K,V>>[] filter) throws GridException
key - Key.val - Value.cached - Cached cache entry, if called from entry wrapper.ttl - Entry time-to-live value. If negative, leave unchanged.filter - Filter.GridException - If put failed.boolean putx(K key, V val, GridPredicate<GridCacheEntry<K,V>>[] filter) throws GridException
key - Key.val - Value.filter - Filter.True if put succeeded.GridException - If put failed.boolean transform(K key, GridClosure<V,V> valTransform) throws GridException
key - Key.valTransform - Value transform closure.True if put succeeded.GridException - If put failed.<R> R transformCompute(K key, GridClosure<V,GridBiTuple<V,R>> transformer) throws GridException
key - Key.transformer - Closure.GridException - If failed.boolean putx(K key, V val, @Nullable GridCacheEntryEx<K,V> cached, long ttl, GridPredicate<GridCacheEntry<K,V>>[] filter) throws GridException
key - Key.val - Value.cached - Cached cache entry, if called from entry wrapper.ttl - Time to live for entry. If negative, leave unchanged.filter - Filter.True if put succeeded.GridException - If put failed.GridCacheReturn<V> putAll(Map<? extends K,? extends V> map, GridPredicate<GridCacheEntry<K,V>>[] filter) throws GridException
map - Map to put.filter - Filter.GridException - If put failed.void putAllDr(Map<? extends K,GridCacheDrInfo<V>> drMap) throws GridException
drMap - DR map to put.GridException - If put failed.GridFuture<?> putAllDrAsync(Map<? extends K,GridCacheDrInfo<V>> drMap)
drMap - DR map to put.put(Object, Object, GridCacheEntryEx, long, GridPredicate[]) was called.void transformAll(@Nullable Map<? extends K,? extends GridClosure<V,V>> map) throws GridException
map - Map to put.GridException - If put failed.GridFuture<V> putAsync(K key, V val, GridPredicate<GridCacheEntry<K,V>>[] filter)
key - Key.val - Value.filter - Filter.GridFuture<V> putAsync(K key, V val, @Nullable GridCacheEntryEx<K,V> cached, long ttl, GridPredicate<GridCacheEntry<K,V>>[] filter)
key - Key.val - Value.cached - Optional cached cache entry.ttl - Time to live for entry. If negative, leave unchanged.filter - Filter.GridFuture<Boolean> putxAsync(K key, V val, GridPredicate<GridCacheEntry<K,V>>[] filter)
key - Key.val - Value.filter - Filter.GridFuture<Boolean> putxAsync(K key, V val, @Nullable GridCacheEntryEx<K,V> cached, long ttl, GridPredicate<GridCacheEntry<K,V>>[] filter)
key - Key.val - Value.cached - Optional cached cache entry.ttl - Time to live for entry. If negative, leave unchanged.filter - Filter.GridFuture<GridCacheReturn<V>> putxAsync0(K key, V val, @Nullable GridCacheEntryEx<K,V> cached, long ttl, GridPredicate<GridCacheEntry<K,V>>[] filter)
key - Key.val - Value.cached - Optional cached cache entry.ttl - Time to live for entry. If negative, leave unchanged.filter - Filter.GridFuture<Boolean> transformAsync(K key, GridClosure<V,V> transformer, @Nullable GridCacheEntryEx<K,V> cached, long ttl)
key - Key.transformer - Value transform closure.cached - Cached entry, if called from entry wrapper.ttl - Entry time-to-live value. If negative, leave unchanged.V remove(K key, @Nullable GridCacheEntryEx<K,V> cached, GridPredicate<GridCacheEntry<K,V>>[] filter) throws GridException
key - Key.cached - Cached entry, if any.filter - Filter.GridException - If remove failed.boolean removex(K key, @Nullable GridCacheEntryEx<K,V> cached, GridPredicate<GridCacheEntry<K,V>>[] filter) throws GridException
key - Key.cached - Cached entry, if any.filter - Filter.GridException - If remove failed.GridCacheReturn<V> removeAll(Collection<? extends K> keys, GridPredicate<GridCacheEntry<K,V>>[] filter) throws GridException
keys - Keys to remove.filter - Filter.GridException - If remove failed.GridFuture<V> removeAsync(K key, @Nullable GridCacheEntryEx<K,V> cached, GridPredicate<GridCacheEntry<K,V>>[] filter)
key - Key to remove.cached - Cached entry, if any.filter - Filter.GridFuture<Boolean> removexAsync(K key, @Nullable GridCacheEntryEx<K,V> cached, GridPredicate<GridCacheEntry<K,V>>[] filter)
key - Key to remove.cached - Cached entry, if any.filter - Filter.GridFuture<GridCacheReturn<V>> removexAsync0(K key, @Nullable GridCacheEntryEx<K,V> cached, GridPredicate<GridCacheEntry<K,V>>[] filter)
key - Key to remove.cached - Optional cached entry.filter - Filter.void removeAllDr(Map<? extends K,GridCacheVersion> drMap) throws GridException
drMap - DR map.GridException - If remove failed.GridFuture<?> removeAllDrAsync(Map<? extends K,GridCacheVersion> drMap)
drMap - DR map.GridFuture<GridCacheReturn<V>> putAllAsync(Map<? extends K,? extends V> map, boolean retval, @Nullable GridCacheEntryEx<K,V> cached, long ttl, GridPredicate<GridCacheEntry<K,V>>[] filter)
map - Map to put.retval - Flag indicating whether a value should be returned.cached - Cached entry, if any. Will be provided only if map has size 1.filter - Filter.ttl - Time to live for entry. If negative, leave unchanged.put(Object, Object, GridCacheEntryEx, long, GridPredicate[]) was called.GridFuture<?> transformAllAsync(@Nullable Map<? extends K,? extends GridClosure<V,V>> map)
map - Map to put.GridFuture<GridCacheReturn<V>> removeAllAsync(Collection<? extends K> keys, @Nullable GridCacheEntryEx<K,V> cached, boolean implicit, boolean retval, GridPredicate<GridCacheEntry<K,V>>[] filter)
keys - Keys to remove.retval - Flag indicating whether a value should be returned.cached - Cached entry, if any. Will be provided only if size of keys collection is 1.implicit - Allows to externally control how transaction handles implicit flags.filter - Filter.GridFuture<?> groupLockAsync(Collection<K> keys)
keys - Keys to lock.boolean partitionLock()
True if keys from the same partition are allowed to be enlisted in group-lock transaction.boolean finish(boolean commit)
throws GridException
commit - True if commit, false if rollback.True if state has been changed.GridException - If finish failed.GridFuture<Boolean> loadMissing(boolean async, Collection<? extends K> keys, GridBiInClosure<K,V> c)
async - if True, then loading will happen in a separate thread.keys - Keys.c - Closure.True value if loading took place.Copyright © 2014. All rights reserved.