|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.DefaultUnitOfWork
public class DefaultUnitOfWork
The default implementation of UnitOfWork
| Constructor Summary | |
|---|---|
DefaultUnitOfWork()
|
|
| Method Summary | |
|---|---|
void |
addInterceptedNode(ProcessorDefinition node)
Adds the given node that was intercepted |
void |
addSynchronization(Synchronization synchronization)
Adds a synchronization hook |
void |
done(Exchange exchange)
Invoked when this unit of work has been completed, whether it has failed or completed |
String |
getId()
Returns the unique ID of this unit of work, lazily creating one if it does not yet have one |
List<ProcessorDefinition> |
getInterceptedNodes()
Gets the current list of intercepted nodes, representing the route path the current Exchange has taken. |
ProcessorDefinition |
getLastInterceptedNode()
Gets the last intercepted node, is null if no last exists. |
boolean |
isSynchronous()
|
void |
removeSynchronization(Synchronization synchronization)
Removes a synchronization hook |
void |
start()
Starts the service |
void |
stop()
Stops the service |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultUnitOfWork()
| Method Detail |
|---|
public void start()
throws Exception
Service
start in interface ServiceException
public void stop()
throws Exception
Service
stop in interface ServiceExceptionpublic void addSynchronization(Synchronization synchronization)
UnitOfWork
addSynchronization in interface UnitOfWorksynchronization - the hookpublic void removeSynchronization(Synchronization synchronization)
UnitOfWork
removeSynchronization in interface UnitOfWorksynchronization - the hookpublic void done(Exchange exchange)
UnitOfWork
done in interface UnitOfWorkexchange - the current exchangepublic boolean isSynchronous()
public String getId()
UnitOfWork
getId in interface UnitOfWorkpublic void addInterceptedNode(ProcessorDefinition node)
TraceableUnitOfWork
addInterceptedNode in interface TraceableUnitOfWorknode - the nodepublic ProcessorDefinition getLastInterceptedNode()
TraceableUnitOfWork
getLastInterceptedNode in interface TraceableUnitOfWorkpublic List<ProcessorDefinition> getInterceptedNodes()
TraceableUnitOfWorkExchange has taken.
getInterceptedNodes in interface TraceableUnitOfWork
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||