org.omnaest.utils.operation
Class OperationUtils
java.lang.Object
org.omnaest.utils.operation.OperationUtils
public class OperationUtils
- extends Object
Helper for Operation
- Author:
- Omnaest
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OperationUtils
public OperationUtils()
executeWithLocks
public static <R,P> R executeWithLocks(Operation<R,P> operation,
P paramter,
Lock... locks)
- Parameters:
operation - OperationWithResultparamter - locks - Lock
- Returns:
- result
executeWithLocks
public static <R> R executeWithLocks(OperationWithResult<R> operation,
Lock... locks)
- Parameters:
operation - OperationWithResultlocks - Lock
- Returns:
- result
executeWithLocks
public static <P> void executeWithLocks(OperationVoid<P> operation,
P parameter,
Lock... locks)
- Similar to
executeWithLocks(OperationIntrinsic, Lock...)
- Parameters:
operation - OperationVoidparameter - locks - Lock
executeWithLocks
public static void executeWithLocks(OperationIntrinsic operation,
Lock... locks)
- Parameters:
operation - OperationIntrinsiclocks - Lock
Copyright © 2013. All Rights Reserved.