| Package | Description |
|---|---|
| org.eclipse.xtext.util | |
| org.eclipse.xtext.util.concurrent |
| Modifier and Type | Method and Description |
|---|---|
<Result,Param extends org.eclipse.emf.ecore.resource.Resource> |
OnChangeEvictingCache.execWithoutCacheClear(Param resource,
IUnitOfWork<Result,Param> transaction)
The transaction will be executed.
|
<Result,Param extends org.eclipse.emf.ecore.resource.Resource> |
OnChangeEvictingCache.execWithTemporaryCaching(Param resource,
IUnitOfWork<Result,Param> transaction)
The transaction will be executed with caching enabled.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CancelableUnitOfWork<R,P> |
static class |
IUnitOfWork.Void<T>
convenience class for side-effect only units
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractReadWriteAcces.afterModify(P state,
Object result,
IUnitOfWork<?,P> work)
is executed within the transaction right after the unit of work has been executed and delivered the result.
|
protected void |
AbstractReadWriteAcces.afterReadOnly(P state,
Object result,
IUnitOfWork<?,P> work)
is executed within the transaction right after the unit of work has been executed and delivered the result.
|
protected void |
AbstractReadWriteAcces.beforeModify(P state,
IUnitOfWork<?,P> work)
Is called before a write lock is obtained
|
protected void |
AbstractReadWriteAcces.beforeReadOnly(P state,
IUnitOfWork<?,P> work)
is called before a read lock is obtained
|
<T> T |
IWriteAccess.modify(IUnitOfWork<T,P> work) |
<T> T |
AbstractReadWriteAcces.modify(IUnitOfWork<T,P> work) |
<T> T |
IReadAccess.Priority.priorityReadOnly(IUnitOfWork<T,P> work) |
<T> T |
AbstractReadWriteAcces.process(IUnitOfWork<T,P> work)
Upgrades a read transaction to a write transaction, executes the work then downgrades to a read transaction
again.
|
<T> T |
IReadAccess.readOnly(IUnitOfWork<T,P> work) |
<T> T |
AbstractReadWriteAcces.readOnly(IUnitOfWork<T,P> work) |
Copyright © 2015. All Rights Reserved.