Class VirtualShardIdentityStrategy
- java.lang.Object
-
- org.zalando.sprocwrapper.sharding.VirtualShardKeyStrategy
-
- org.zalando.sprocwrapper.sharding.VirtualShardIdentityStrategy
-
public class VirtualShardIdentityStrategy extends VirtualShardKeyStrategy
simple strategy were the shard key is returned unmodified as integer. (this allows for "@ShardKey int shardIndex" pseudo parameters)- Author:
- hjacobs
-
-
Constructor Summary
Constructors Constructor Description VirtualShardIdentityStrategy()
-
-
-
Method Detail
-
getShardId
public int getShardId(Object[] objs)
- Overrides:
getShardIdin classVirtualShardKeyStrategy- Parameters:
objs- Key Objects- Returns:
- virtual shard id
-
-