TransactionTrackerTKey, TValue Class

Handles the transactions and any waits/notifications associated with transaction numbers.

Definition

Namespace: SnapDB.Snap.Services.Writer
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public class TransactionTracker<TKey, TValue>
where TKey : new(), SnapTypeBase<TKey>
where TValue : new(), SnapTypeBase<TValue>
Inheritance
Object    TransactionTrackerTKey, TValue

Type Parameters

TKey
The key
TValue
The value

Remarks

Transaction IDs are long values, starting with zero. The reason behind this, even if 2 billion transactions could happen per second, it would still take over 100 years without an application restart to loop around. Realistically a therotical peak would be 200 million transactions per second (An Interlocked.Increment).

Constructors

TransactionTrackerTKey, TValue Creates a new transaction tracker that monitors the provided buffers.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)
WaitForHardCommit Waits for the specified transaction to commit to the disk.
WaitForSoftCommit Wait for the specified transaction to commit to memory.

See Also