Esempio n. 1
0
        public void TestAutoSplit()
        {
            KeySharedPolicy policy = KeySharedPolicy.AutoSplitHashRange();

            Assert.Equal(2 << 15, policy.HashRangeTotal);

            policy.Validate();
        }
Esempio n. 2
0
 public ConsumerConfigBuilder <T> KeySharedPolicy(KeySharedPolicy keySharedPolicy)
 {
     keySharedPolicy.Validate();
     _conf.KeySharedPolicy = keySharedPolicy;
     return(this);
 }