Class AbstractWaitHook

  • All Implemented Interfaces:
    WaitHook

    public abstract class AbstractWaitHook
    extends java.lang.Object
    implements WaitHook
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onWait​(Workflow<?> wf, java.sql.Connection con)
      Called for one single wait invocation of the corresponding workflow instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractWaitHook

        public AbstractWaitHook()
    • Method Detail

      • onWait

        public void onWait​(Workflow<?> wf,
                           java.sql.Connection con)
                    throws java.lang.Exception
        Description copied from interface: WaitHook
        Called for one single wait invocation of the corresponding workflow instance. This method may be called multiple times, e.g. in case of a rollback with subsequent retry. Attention! You may not commit or rollback the transaction currently hold by the specified connection (if not null). This will be done by COPPER. You may just use this to hook custom code into the transaction context.
        Specified by:
        onWait in interface WaitHook
        Parameters:
        wf - Workflow instance
        con - DB connection or null, in case there is no DB connection in the scope
        Throws:
        java.lang.Exception - Any exception which can happen inside of the code of this WaitHook.