Class ShardStrategy.Ring

java.lang.Object
services.moleculer.strategy.ShardStrategy.Ring
Enclosing class:
ShardStrategy<T extends Endpoint>

protected static class ShardStrategy.Ring extends Object
  • Field Details

    • limitMap

      protected HashMap<Endpoint,long[]> limitMap
      The "hash ring" (https://www.toptal.com/big-data/consistent-hashing)
    • ringSize

      protected final int ringSize
      Actual/minimum ring size (or -1, if not set)
    • cache

      protected final io.datatree.dom.Cache<String,Endpoint> cache
      Accelerator cache
  • Constructor Details

    • Ring

      protected Ring(int nodes, int vnodes, Integer ringSize, int cacheSize)