Class IgniteTxLocalAdapter.PostLockClosure1<T>
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.transactions.IgniteTxLocalAdapter.PostLockClosure1<T>
-
- Type Parameters:
T- Return type.
- All Implemented Interfaces:
Serializable,IgniteBiClosure<Boolean,Exception,IgniteInternalFuture<T>>
- Direct Known Subclasses:
IgniteTxLocalAdapter.PLC1
- Enclosing class:
- IgniteTxLocalAdapter
protected abstract class IgniteTxLocalAdapter.PostLockClosure1<T> extends Object implements IgniteBiClosure<Boolean,Exception,IgniteInternalFuture<T>>
Post-lock closure.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPostLockClosure1(T arg)Creates a Post-Lock closure that will pass the argument given to thepostLockmethod.protectedPostLockClosure1(T arg, boolean commit)Creates a Post-Lock closure that will pass the argument given to thepostLockmethod.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description IgniteInternalFuture<T>apply(Boolean locked, @Nullable Exception e)Closure body.protected abstract TpostLock(T val)Post lock callback.
-
-
-
Constructor Detail
-
PostLockClosure1
protected PostLockClosure1(T arg)
Creates a Post-Lock closure that will pass the argument given to thepostLockmethod.- Parameters:
arg- Argument forpostLock.
-
PostLockClosure1
protected PostLockClosure1(T arg, boolean commit)
Creates a Post-Lock closure that will pass the argument given to thepostLockmethod.- Parameters:
arg- Argument forpostLock.commit- Flag indicating whether commit should be done after postLock.
-
-
Method Detail
-
apply
public final IgniteInternalFuture<T> apply(Boolean locked, @Nullable @Nullable Exception e)
Closure body.- Specified by:
applyin interfaceIgniteBiClosure<Boolean,Exception,IgniteInternalFuture<T>>- Parameters:
locked- First parameter.e- Second parameter.- Returns:
- Closure return value.
-
postLock
protected abstract T postLock(T val) throws IgniteCheckedException
Post lock callback.- Parameters:
val- Argument.- Returns:
- Future return value.
- Throws:
IgniteCheckedException- If operation failed.
-
-