C# Class Cedar.Sharding.ShardStrategy.ShardSelection.ShardSelectionStrategy

Inheritance: IShardSelectionStrategy
显示文件 Open project: Vadi/Cedar Class Usage Examples

Public Methods

Method Description
SelectShardIdForExistingObject ( ShardStartegyData obj ) : long

Returns the available shard

SelectShardIdForNewObject ( ShardStartegyData obj ) : long

Private Methods

Method Description
GetSequentialStrategy ( long shardId, IList shardWileList ) : long

Method Details

SelectShardIdForExistingObject() public method

Returns the available shard
public SelectShardIdForExistingObject ( ShardStartegyData obj ) : long
obj ShardStartegyData
return long

SelectShardIdForNewObject() public method

public SelectShardIdForNewObject ( ShardStartegyData obj ) : long
obj ShardStartegyData
return long