On 1 août 2011, at 18:16, Mircea Markus wrote:
Hi,
These is a draft of the config changes I plan to add with ISPN-1131, can you please
comment?
1.
<transaction lockingMode="optimistic"/>
The "lockingMode" attribute can have two values: optimistic(default) and
pessimistic. If pessimistic is specified then this hase the same meaning as
"useEagerLocking=true" (useEagerLocking to be deprecated).
The fluent API looks as follows:
- config.fluent().transaction().lockingModeOptimistic();
- config.fluent().transaction().lockingModePessimistic();
config.fluent().transaction().lockingMode(OPTIMISTIC) //Enum are nice to see alternative
options