org.apache.camel.spi
Interface SubUnitOfWork

All Known Implementing Classes:
DefaultSubUnitOfWork

public interface SubUnitOfWork

A sub unit of work is a way of implement sub-transactions in Camel routing. This is needed by some EIPs where you can have sub routes such as the Splitter. The Camel end user may want to indicate that the Splitter should act as a single combined unit of work.

See Also:
SubUnitOfWorkCallback

Method Summary
 List<Exception> getExceptions()
          If failed then a number of exceptions could have occurred, causing the SubUnitOfWork to fail.
 boolean isFailed()
          Is the SubUnitOfWork marked as failed.
 

Method Detail

isFailed

boolean isFailed()
Is the SubUnitOfWork marked as failed.

Returns:
true to indicate this sub unit of work is failed.

getExceptions

List<Exception> getExceptions()
If failed then a number of exceptions could have occurred, causing the SubUnitOfWork to fail.

Returns:
the caused exceptions.


Apache CAMEL