|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SubUnitOfWorkCallback
To allow unit of work for the UnitOfWork
while processing a number of Exchange
s.
SubUnitOfWorkCallback
which allows us to have the sub routes participate in a SubUnitOfWork
And then the outcome of the SubUnitOfWork
will be a single atomic commit or rollback.
When using a SubUnitOfWork
we need to tap into the sub routes, and ensure they callback with the progress
of the sub Exchange
being processed. For example the error handler, we need to tap into, and
ensure that any exhausted sub Exchange
is propagated into the result of the SubUnitOfWork
.
This SubUnitOfWorkCallback
allows us to do that.
SubUnitOfWork
Method Summary | |
---|---|
void |
onDone(Exchange exchange)
The exchange is done. |
void |
onExhausted(Exchange exchange)
The exchange is exhausted, by a redeliverable error handler. |
Method Detail |
---|
void onExhausted(Exchange exchange)
exchange
- the exchangevoid onDone(Exchange exchange)
exchange
- the exchange.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |