9.4.7. Configure Locking Mode (Library Mode)
In JBoss Data Grid's Library mode, the locking mode is set within the
transaction element as follows:
Set the
lockingMode value to OPTIMISTIC or PESSIMISTIC to configure the locking mode used for the transactional cache.