FdbHighContentionAllocator
Namespace: FoundationDB.Layers.Allocators · class
Implements: IFdbLayer<State>, IFdbLayer
Custom allocator that generates unique integer values with low probability of conflicts
Constructors
FdbHighContentionAllocator
FdbHighContentionAllocator(ISubspaceLocation location, Random rng = null)
Create an allocator operating under a specific location
Properties
Location
ISubspaceLocation Location { get; }
Location of the allocator
Methods
AllocateAsync
static Task<long> AllocateAsync(IFdbTransaction trans, IKeySubspace subspace, Random rng)
Resolve
ValueTask<State> Resolve(IFdbReadOnlyTransaction tr)