Class GridNearOptimisticTxPrepareFutureAdapter.KeyLockFuture
- java.lang.Object
-
- org.apache.ignite.internal.util.future.GridFutureAdapter<Void>
-
- org.apache.ignite.internal.processors.cache.distributed.near.GridNearOptimisticTxPrepareFutureAdapter.KeyLockFuture
-
- All Implemented Interfaces:
IgniteInternalFuture<Void>
- Enclosing class:
- GridNearOptimisticTxPrepareFutureAdapter
protected static class GridNearOptimisticTxPrepareFutureAdapter.KeyLockFuture extends GridFutureAdapter<Void>
Keys lock future.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanallKeysAddedprotected Collection<IgniteTxKey>lockKeys
-
Constructor Summary
Constructors Modifier Constructor Description protectedKeyLockFuture()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddLockKey(IgniteTxKey key)protected voidonAllKeysAdded()Moves future to the ready state.protected voidonKeyLocked(IgniteTxKey key)StringtoString()-
Methods inherited from class org.apache.ignite.internal.util.future.GridFutureAdapter
cancel, chain, chain, chain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, listen, logger, onCancelled, onDone, onDone, onDone, onDone, onDone, reset, result
-
-
-
-
Field Detail
-
lockKeys
@GridToStringInclude protected Collection<IgniteTxKey> lockKeys
-
allKeysAdded
protected volatile boolean allKeysAdded
-
-
Method Detail
-
addLockKey
protected void addLockKey(IgniteTxKey key)
- Parameters:
key- Key to track for locking.
-
onKeyLocked
protected void onKeyLocked(IgniteTxKey key)
- Parameters:
key- Locked keys.
-
onAllKeysAdded
protected void onAllKeysAdded()
Moves future to the ready state.
-
toString
public String toString()
- Overrides:
toStringin classGridFutureAdapter<Void>
-
-