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

      Constructors 
      Constructor Description
      Void()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      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

      • Void

        public 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:
        computed value R
        Throws:
        java.lang.Exception
      • process

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