org.apache.camel.impl
Class DefaultSubUnitOfWork

java.lang.Object
  extended by org.apache.camel.impl.DefaultSubUnitOfWork
All Implemented Interfaces:
SubUnitOfWork, SubUnitOfWorkCallback

public class DefaultSubUnitOfWork
extends Object
implements SubUnitOfWork, SubUnitOfWorkCallback

A default implementation of SubUnitOfWork combined with a SubUnitOfWorkCallback to gather callbacks into this SubUnitOfWork state


Constructor Summary
DefaultSubUnitOfWork()
           
 
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.
 void onDone(Exchange exchange)
          The exchange is done.
 void onExhausted(Exchange exchange)
          The exchange is exhausted, by a redeliverable error handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSubUnitOfWork

public DefaultSubUnitOfWork()
Method Detail

onExhausted

public void onExhausted(Exchange exchange)
Description copied from interface: SubUnitOfWorkCallback
The exchange is exhausted, by a redeliverable error handler.

Specified by:
onExhausted in interface SubUnitOfWorkCallback
Parameters:
exchange - the exchange

onDone

public void onDone(Exchange exchange)
Description copied from interface: SubUnitOfWorkCallback
The exchange is done.

Specified by:
onDone in interface SubUnitOfWorkCallback
Parameters:
exchange - the exchange.

isFailed

public boolean isFailed()
Description copied from interface: SubUnitOfWork
Is the SubUnitOfWork marked as failed.

Specified by:
isFailed in interface SubUnitOfWork
Returns:
true to indicate this sub unit of work is failed.

getExceptions

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

Specified by:
getExceptions in interface SubUnitOfWork
Returns:
the caused exceptions.


Apache CAMEL