T - Return type.protected abstract class GridCacheTxLocalAdapter.PostLockClosure1<T> extends Object implements GridBiClosure<Boolean,Exception,GridFuture<T>>
| Modifier | Constructor and Description |
|---|---|
protected |
GridCacheTxLocalAdapter.PostLockClosure1(T arg)
Creates a Post-Lock closure that will pass the argument given to the
postLock method. |
protected |
GridCacheTxLocalAdapter.PostLockClosure1(T arg,
boolean commit)
Creates a Post-Lock closure that will pass the argument given to the
postLock method. |
protected GridCacheTxLocalAdapter.PostLockClosure1(T arg)
postLock method.arg - Argument for postLock.protected GridCacheTxLocalAdapter.PostLockClosure1(T arg, boolean commit)
postLock method.arg - Argument for postLock.commit - Flag indicating whether commit should be done after postLock.public final GridFuture<T> apply(Boolean locked, @Nullable Exception e)
apply in interface GridBiClosure<Boolean,Exception,GridFuture<T>>locked - First parameter.e - Second parameter.protected abstract T postLock(T val) throws GridException
val - Argument.GridException - If operation failed.Copyright © 2014. All rights reserved.