public class DefaultSubUnitOfWork extends Object implements SubUnitOfWork, SubUnitOfWorkCallback
SubUnitOfWork
combined
with a SubUnitOfWorkCallback
to gather callbacks into this SubUnitOfWork
stateConstructor and Description |
---|
DefaultSubUnitOfWork() |
Modifier and Type | Method and Description |
---|---|
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.
|
public DefaultSubUnitOfWork()
public void onExhausted(Exchange exchange)
SubUnitOfWorkCallback
onExhausted
in interface SubUnitOfWorkCallback
exchange
- the exchangepublic void onDone(Exchange exchange)
SubUnitOfWorkCallback
onDone
in interface SubUnitOfWorkCallback
exchange
- the exchange.public boolean isFailed()
SubUnitOfWork
SubUnitOfWork
marked as failed.isFailed
in interface SubUnitOfWork
public List<Exception> getExceptions()
SubUnitOfWork
SubUnitOfWork
to fail.getExceptions
in interface SubUnitOfWork
Apache Camel