public abstract class CancelableUnitOfWork<R,P> extends java.lang.Object implements IUnitOfWork<R,P>
IUnitOfWork.Void<T>
Constructor and Description |
---|
CancelableUnitOfWork() |
Modifier and Type | Method and Description |
---|---|
R |
exec(P state) |
abstract R |
exec(P state,
CancelIndicator cancelIndicator) |
void |
setCancelIndicator(CancelIndicator cancelIndicator) |
public void setCancelIndicator(CancelIndicator cancelIndicator)
public R exec(P state) throws java.lang.Exception
exec
in interface IUnitOfWork<R,P>
state
- - The state, which is synchronized while this method is executed
Do not return any references to something contained in this resourcejava.lang.Exception
public abstract R exec(P state, CancelIndicator cancelIndicator) throws java.lang.Exception
java.lang.Exception