C# Class Cedar.ShardStrategyRepository

Inheritance: BaseRepository
Show file Open project: Vadi/Cedar Class Usage Examples

Public Methods

Method Description
AddShardStrategy ( long shardId, int totalCount, int maxCount ) : void

Add new strategy

GetShardStrategy ( ) : IList

Get all shard strategy

GetShardStrategyById ( long shardId ) : IList

Get the shrad strategy for a given shard

UpdateShardStrategy ( long shardId ) : void

Updates the total counts of a shard

Method Details

AddShardStrategy() public method

Add new strategy
public AddShardStrategy ( long shardId, int totalCount, int maxCount ) : void
shardId long
totalCount int
maxCount int
return void

GetShardStrategy() public method

Get all shard strategy
public GetShardStrategy ( ) : IList
return IList

GetShardStrategyById() public method

Get the shrad strategy for a given shard
public GetShardStrategyById ( long shardId ) : IList
shardId long
return IList

UpdateShardStrategy() public method

Updates the total counts of a shard
public UpdateShardStrategy ( long shardId ) : void
shardId long
return void