![]() |
GridGain C++
|
Transaction concurrency control model. More...
#include <transaction_consts.h>
Public Types | |
enum | Type { OPTIMISTIC = 0, PESSIMISTIC = 1 } |
Transaction concurrency control model.
Enumerator | |
---|---|
OPTIMISTIC | Optimistic concurrency model. In this mode all cache operations are not distributed to other nodes until Transaction::Commit() is called. In this mode one Note that in this mode, optimistic failures are only possible in conjunction with ::IGNITE_TX_ISOLATION_SERIALIZABLE isolation level. In all other cases, optimistic transactions will never fail optimistically and will always be identically ordered on all participating grid nodes. |
PESSIMISTIC | Pessimistic concurrency model. In this mode a lock is acquired on all cache operations with exception of read operations in ::IGNITE_TX_ISOLATION_READ_COMMITTED mode. All optional filters passed into cache operations will be evaluated after successful lock acquisition. Whenever Transaction::Commit() is called, a single one-way |