Package com.couchbase.client.core.node
Class KeyValueLocator
- java.lang.Object
-
- com.couchbase.client.core.node.KeyValueLocator
-
- All Implemented Interfaces:
Locator
public class KeyValueLocator extends Object implements Locator
ALocator
responsible for locating the right node based on the partition of the key.Coming from 1.0, this locator has not really changed - only minor details have been modified in the refactoring process.
- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description KeyValueLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispatch(Request<? extends Response> request, List<Node> nodes, ClusterConfig config, CoreContext ctx)
Given the environment and node information, the implementation locates the right set of nodes and dispatches the request into them.
-
-
-
Method Detail
-
dispatch
public void dispatch(Request<? extends Response> request, List<Node> nodes, ClusterConfig config, CoreContext ctx)
Description copied from interface:Locator
Given the environment and node information, the implementation locates the right set of nodes and dispatches the request into them.
-
-