ThreadWork
instances need to provide a strategy defining the execution
policies for its work. That is, how the work for a thread will be processed. The
interface that is implemented is ThreadExecutionStrategy
. The most
important aspect of this is how exceptions will be treated with respect to
transactions.
ThreadWorkUnits
be wrapped in a single transaction with a
single rollback on an exception?ThreadWorkUnit
be in its own transaction?ThreadWorkUnits
within a single
transaction?ThreadExecutionStrategy
, not create new ones. Please scan for
existing implementations of ThreadExecutionStrategy
.