Class IUnitOfWork.Void<T>
- java.lang.Object
-
- org.eclipse.xtext.util.concurrent.IUnitOfWork.Void<T>
-
- Type Parameters:
T- the state type
- All Implemented Interfaces:
IUnitOfWork<java.lang.Object,T>
- Enclosing interface:
- IUnitOfWork<R,P>
public abstract static class IUnitOfWork.Void<T> extends java.lang.Object implements IUnitOfWork<java.lang.Object,T>
convenience class for side-effect only units
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.xtext.util.concurrent.IUnitOfWork
IUnitOfWork.Void<T>
-
-
Constructor Summary
Constructors Constructor Description Void()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.Objectexec(T state)abstract voidprocess(T state)
-
-
-
Method Detail
-
exec
public final java.lang.Object exec(T state) throws java.lang.Exception
- Specified by:
execin interfaceIUnitOfWork<java.lang.Object,T>- 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
-
process
public abstract void process(T state) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-