[infinispan-dev] changes introduced by optimistic transactions

Emmanuel Bernard emmanuel at hibernate.org
Mon Aug 1 12:55:44 EDT 2011


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




More information about the infinispan-dev mailing list