Class CancelableUnitOfWork<R,P>
- java.lang.Object
-
- org.eclipse.xtext.util.concurrent.CancelableUnitOfWork<R,P>
-
- All Implemented Interfaces:
IUnitOfWork<R,P>
public abstract class CancelableUnitOfWork<R,P> extends java.lang.Object implements IUnitOfWork<R,P>
- Since:
- 2.7
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.xtext.util.concurrent.IUnitOfWork
IUnitOfWork.Void<T>
-
-
Constructor Summary
Constructors Constructor Description CancelableUnitOfWork()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description R
exec(P state)
abstract R
exec(P state, CancelIndicator cancelIndicator)
void
setCancelIndicator(CancelIndicator cancelIndicator)
-
-
-
Method Detail
-
setCancelIndicator
public void setCancelIndicator(CancelIndicator cancelIndicator)
-
exec
public R exec(P state) throws java.lang.Exception
- Specified by:
exec
in interfaceIUnitOfWork<R,P>
- Parameters:
state
- - The state, which is synchronized while this method is executed Do not return any references to something contained in this resource- Returns:
- computed value R
- Throws:
java.lang.Exception
-
exec
public abstract R exec(P state, CancelIndicator cancelIndicator) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-