getNodes


Description:

public Result<ArrayList<string>,Error> getNodes (string key, int count)

Returns up to count distinct nodes for replicas.

Parameters:

key

lookup key.

count

max number of nodes to return.

Returns:

Result.ok(list of distinct nodes), or Result.error(ConsistentHashError.INVALID_ARGUMENT) when key is empty or count is not positive.