Interface IPolicy

    • Method Detail

      • init

        void init()
        Initializes the policy, so that the policy's "work" methods can be used. Calling a "work" method while the policy is not initialized will result in an IllegalStateException, as well as re-initializing before committing or rolling back.
      • rollback

        void rollback()
        Puts back this policy into an uninitialized state, reverting any changes that have been applied via the policy's work methods since the preceding init() call.