public void TestAutoSplit() { KeySharedPolicy policy = KeySharedPolicy.AutoSplitHashRange(); Assert.Equal(2 << 15, policy.HashRangeTotal); policy.Validate(); }
public ConsumerConfigBuilder <T> KeySharedPolicy(KeySharedPolicy keySharedPolicy) { keySharedPolicy.Validate(); _conf.KeySharedPolicy = keySharedPolicy; return(this); }