class MultiTenantShardChoser implements ShardChoser (View source)

The MultiTenant Shard choser assumes that the distribution value directly maps to the shard id.

Methods

int
pickShard(string $distributionValue, PoolingShardConnection $conn)

Picks a shard for the given distribution value.

Details

int pickShard(string $distributionValue, PoolingShardConnection $conn)

Picks a shard for the given distribution value.

Parameters

string $distributionValue
PoolingShardConnection $conn

Return Value

int