Method | Description | |
---|---|---|
Add ( IFdbTransaction trans, long x ) : void |
Add the value x to the counter.
|
|
AddAsync ( long x, |
Add the value x to the counter.
|
|
FdbHighContentionCounter ( IFdbDatabase db, FdbSubspace subspace ) : FoundationDB.Client |
Create a new High Contention counter.
|
|
FdbHighContentionCounter ( IFdbDatabase db, FdbSubspace subspace, IValueEncoder |
Create a new High Contention counter, using a specific value encoder.
|
|
GetSnapshot ( IFdbReadOnlyTransaction trans ) : Task |
Get the value of the counter with snapshot isolation (no transaction conflicts).
|
|
GetSnapshotAsync ( |
Get the value of the counter with snapshot isolation (no transaction conflicts).
|
|
GetTransactional ( IFdbReadOnlyTransaction trans ) : Task |
Get the value of the counter. Not recommended for use with read/write transactions when the counter is being frequently updated (conflicts will be very likely).
|
|
GetTransactionalAsync ( |
Get the value of the counter. Not recommended for use with read/write transactions when the counter is being frequently updated (conflicts will be very likely).
|
|
SetTotal ( IFdbTransaction trans, long x ) : Task |
Set the counter to value x.
|
|
SetTotalAsync ( long x, |
Set the counter to value x.
|
Method | Description | |
---|---|---|
RandomId ( ) : Slice |
Generate a new random slice
|
Method | Description | |
---|---|---|
BackgroundCoalesce ( int n, |
||
Coalesce ( int N, |
public Add ( IFdbTransaction trans, long x ) : void | ||
trans | IFdbTransaction | |
x | long | |
return | void |
public AddAsync ( long x, |
||
x | long | |
cancellationToken | ||
return | Task |
public FdbHighContentionCounter ( IFdbDatabase db, FdbSubspace subspace ) : FoundationDB.Client | ||
db | IFdbDatabase | Database used by this layer |
subspace | FdbSubspace | Subspace to be used for storing the counter |
return | FoundationDB.Client |
public FdbHighContentionCounter ( IFdbDatabase db, FdbSubspace subspace, IValueEncoder |
||
db | IFdbDatabase | Database used by this layer |
subspace | FdbSubspace | Subspace to be used for storing the counter |
encoder | IValueEncoder |
Encoder for the counter values |
return | FoundationDB.Client |
public GetSnapshot ( IFdbReadOnlyTransaction trans ) : Task |
||
trans | IFdbReadOnlyTransaction | |
return | Task |
public GetSnapshotAsync ( |
||
cancellationToken | ||
return | Task |
public GetTransactional ( IFdbReadOnlyTransaction trans ) : Task |
||
trans | IFdbReadOnlyTransaction | |
return | Task |
public GetTransactionalAsync ( |
||
cancellationToken | ||
return | Task |
public SetTotal ( IFdbTransaction trans, long x ) : Task | ||
trans | IFdbTransaction | |
x | long | |
return | Task |
public SetTotalAsync ( long x, |
||
x | long | |
cancellationToken | ||
return | Task |