Class UnitOfWorkHelper


  • public final class UnitOfWorkHelper
    extends Object
    Utility methods for UnitOfWork
    • Method Detail

      • doneUow

        public static void doneUow​(org.apache.camel.spi.UnitOfWork uow,
                                   org.apache.camel.Exchange exchange)
        Done and stop the UnitOfWork.
        Parameters:
        uow - the unit of work
        exchange - the exchange (will unset the UoW on the exchange)
      • doneSynchronizations

        public static void doneSynchronizations​(org.apache.camel.Exchange exchange,
                                                List<org.apache.camel.spi.Synchronization> synchronizations,
                                                org.slf4j.Logger log)
      • beforeRouteSynchronizations

        public static void beforeRouteSynchronizations​(org.apache.camel.Route route,
                                                       org.apache.camel.Exchange exchange,
                                                       List<org.apache.camel.spi.Synchronization> synchronizations,
                                                       org.slf4j.Logger log)
      • afterRouteSynchronizations

        public static void afterRouteSynchronizations​(org.apache.camel.Route route,
                                                      org.apache.camel.Exchange exchange,
                                                      List<org.apache.camel.spi.Synchronization> synchronizations,
                                                      org.slf4j.Logger log)