Class 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
    • Constructor Detail

      • CancelableUnitOfWork

        public CancelableUnitOfWork()
    • Method Detail

      • setCancelIndicator

        public void setCancelIndicator​(CancelIndicator cancelIndicator)
      • exec

        public R exec​(P state)
               throws java.lang.Exception
        Specified by:
        exec in interface IUnitOfWork<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