org.eclipse.xtext.util.concurrent
Class IUnitOfWork.Void<T>

java.lang.Object
  extended by org.eclipse.xtext.util.concurrent.IUnitOfWork.Void<T>
Type Parameters:
T -
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
IUnitOfWork.Void()
           
 
Method Summary
 java.lang.Object exec(T state)
           
abstract  void process(T state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IUnitOfWork.Void

public IUnitOfWork.Void()
Method Detail

exec

public final java.lang.Object exec(T state)
                            throws java.lang.Exception
Specified by:
exec in interface IUnitOfWork<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:
Throws:
java.lang.Exception

process

public abstract void process(T state)
                      throws java.lang.Exception
Throws:
java.lang.Exception