org.apache.camel.util
Class UnitOfWorkHelper

java.lang.Object
  extended by org.apache.camel.util.UnitOfWorkHelper

public final class UnitOfWorkHelper
extends Object

Version:

Method Summary
static UnitOfWork createUoW(Exchange exchange)
          Deprecated. use CamelContext.getUnitOfWorkFactory() instead.
static void doneSynchronizations(Exchange exchange, List<Synchronization> synchronizations, org.slf4j.Logger log)
           
static void doneUow(UnitOfWork uow, Exchange exchange)
          Done and stop the UnitOfWork.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createUoW

@Deprecated
public static UnitOfWork createUoW(Exchange exchange)
Deprecated. use CamelContext.getUnitOfWorkFactory() instead.

Creates a new UnitOfWork.

Parameters:
exchange - the exchange
Returns:
the created unit of work (is not started)

doneUow

public static void doneUow(UnitOfWork uow,
                           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(Exchange exchange,
                                        List<Synchronization> synchronizations,
                                        org.slf4j.Logger log)


Apache Camel