class LocalNodeFirstLoadBalancingPolicy extends LoadBalancingPolicy

Selects local node first and then nodes in local DC in random order. Never selects nodes from other DCs. For writes, if a statement has a routing key set, this LBP is token aware - it prefers the nodes which are replicas of the computed token to the other nodes.

Linear Supertypes
LoadBalancingPolicy, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LocalNodeFirstLoadBalancingPolicy
  2. LoadBalancingPolicy
  3. AutoCloseable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LocalNodeFirstLoadBalancingPolicy(context: DriverContext, profileName: String)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. def close(): Unit
    Definition Classes
    LocalNodeFirstLoadBalancingPolicy → LoadBalancingPolicy → AutoCloseable
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def getRequestTracker(): Optional[RequestTracker]
    Definition Classes
    LoadBalancingPolicy
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. def init(nodes: Map[UUID, Node], distanceReporter: DistanceReporter): Unit
    Definition Classes
    LocalNodeFirstLoadBalancingPolicy → LoadBalancingPolicy
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def newQueryPlan(request: Request, session: Session): Queue[Node]
    Definition Classes
    LocalNodeFirstLoadBalancingPolicy → LoadBalancingPolicy
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def onAdd(node: Node): Unit
    Definition Classes
    LocalNodeFirstLoadBalancingPolicy → LoadBalancingPolicy
  19. def onDown(node: Node): Unit
    Definition Classes
    LocalNodeFirstLoadBalancingPolicy → LoadBalancingPolicy
  20. def onRemove(node: Node): Unit
    Definition Classes
    LocalNodeFirstLoadBalancingPolicy → LoadBalancingPolicy
  21. def onUp(node: Node): Unit
    Definition Classes
    LocalNodeFirstLoadBalancingPolicy → LoadBalancingPolicy
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. def tokenMap: Option[TokenMap]
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from LoadBalancingPolicy

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped