C# Class YesSql.Core.Services.LinearBlockIdGenerator

This class manages a linear identifiers block allocator c.f., http://literatejava.com/hibernate/linear-block-allocator-a-superior-alternative-to-hilo/
Mostra file Open project: sebastienros/yessql Class Usage Examples

Public Properties

Property Type Description
MaxRetries int

Public Methods

Method Description
GetNextId ( string dimension ) : long
LinearBlockIdGenerator ( IConnectionFactory connectionFactory, int range, string tablePrefix ) : System

Private Methods

Method Description
EnsureInitialized ( string dimension ) : void
LeaseRange ( string dimension ) : void

Method Details

GetNextId() public method

public GetNextId ( string dimension ) : long
dimension string
return long

LinearBlockIdGenerator() public method

public LinearBlockIdGenerator ( IConnectionFactory connectionFactory, int range, string tablePrefix ) : System
connectionFactory IConnectionFactory
range int
tablePrefix string
return System

Property Details

MaxRetries public_oe property

public int MaxRetries
return int