To allow unit of work for the {@link UnitOfWork} while processing a number of {@link Exchange}s.
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.
To implement this, we use this {@link SubUnitOfWorkCallback}which allows us to have the sub routes participate in a {@link SubUnitOfWork}And then the outcome of the {@link SubUnitOfWork} will be a single atomic commit or rollback.
When using a {@link SubUnitOfWork} we need to tap into the sub routes, and ensure they callback with the progressof the sub {@link Exchange} being processed. For example the error handler, we need to tap into, andensure that any exhausted sub {@link Exchange} is propagated into the result of the {@link SubUnitOfWork}. This {@link SubUnitOfWorkCallback} allows us to do that.
@see SubUnitOfWork