Class OptimisticTransaction<TKey, TValue>
Inheritance
OptimisticTransaction<TKey, TValue>
Assembly: ZoneTree.dll
Syntax
public sealed class OptimisticTransaction<TKey, TValue>
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
Constructors
|
Improve this Doc
View Source
OptimisticTransaction(long, ZoneTreeOptions<TKey, TValue>, ITransactionLog<TKey, TValue>)
Declaration
public OptimisticTransaction(long transactionId, ZoneTreeOptions<TKey, TValue> options, ITransactionLog<TKey, TValue> transactionLog)
Parameters
Properties
|
Improve this Doc
View Source
IsReadyToCommit
Declaration
public bool IsReadyToCommit { get; set; }
Property Value
|
Improve this Doc
View Source
TransactionId
Declaration
public long TransactionId { get; }
Property Value
Methods
|
Improve this Doc
View Source
HandleReadKey(ref ReadWriteStamp)
Declaration
public OptimisticReadAction HandleReadKey(ref ReadWriteStamp readWriteStamp)
Parameters
Returns
|
Improve this Doc
View Source
HandleWriteKey(ref ReadWriteStamp, in TKey, bool, in TValue)
Declaration
public OptimisticWriteAction HandleWriteKey(ref ReadWriteStamp readWriteStamp, in TKey key, bool hasOldValue, in TValue oldValue)
Parameters
Type |
Name |
Description |
ReadWriteStamp |
readWriteStamp |
|
TKey |
key |
|
bool |
hasOldValue |
|
TValue |
oldValue |
|
Returns