Class ArrayModNodeLocator

java.lang.Object
net.spy.memcached.ArrayModNodeLocator
All Implemented Interfaces:
NodeLocator

public final class ArrayModNodeLocator extends Object implements NodeLocator
NodeLocator implementation for dealing with simple array lookups using a modulus of the hash code and node list length.
  • Constructor Details

    • ArrayModNodeLocator

      public ArrayModNodeLocator(List<MemcachedNode> n, HashAlgorithm alg)
      Construct an ArraymodNodeLocator over the given array of nodes and using the given hash algorithm.
      Parameters:
      n - the array of nodes
      alg - the hash algorithm
  • Method Details