public class AccessGuard
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
execute(org.eclipse.emf.ecore.EObject owner,
Operation<T> operation)
Executes operation.
|
public static <T> T execute(org.eclipse.emf.ecore.EObject owner, Operation<T> operation)
T
- type of operation parameter.owner
- EObject that should be used to acquire lock.operation
- operation that should be executed.OperationTimeoutException
- if the lock can not be acquired during specified time period.