public class DefaultSubUnitOfWork extends java.lang.Object implements SubUnitOfWork, SubUnitOfWorkCallback
SubUnitOfWork combined
with a SubUnitOfWorkCallback to gather callbacks into this SubUnitOfWork state| Constructor and Description |
|---|
DefaultSubUnitOfWork() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.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 void onExhausted(Exchange exchange)
SubUnitOfWorkCallbackonExhausted in interface SubUnitOfWorkCallbackexchange - the exchangepublic void onDone(Exchange exchange)
SubUnitOfWorkCallbackonDone in interface SubUnitOfWorkCallbackexchange - the exchange.public boolean isFailed()
SubUnitOfWorkSubUnitOfWork marked as failed.isFailed in interface SubUnitOfWorkpublic java.util.List<java.lang.Exception> getExceptions()
SubUnitOfWorkSubUnitOfWork to fail.getExceptions in interface SubUnitOfWorkCopyright © 2007-2014 Red Hat, Inc.. All Rights Reserved.