Class AppProfile.MultiClusterRoutingPolicy (2.67.1)
public static class AppProfile.MultiClusterRoutingPolicy implements AppProfile.RoutingPolicy
A RoutingPolicy that tells Cloud Bigtable that it can route each request to any
available cluster.
Inheritance
Object >
AppProfile.MultiClusterRoutingPolicy
Static Methods
of()
public static AppProfile.MultiClusterRoutingPolicy of()
Creates a new instance of MultiClusterRoutingPolicy.
of(String[] clusterIds)
public static AppProfile.MultiClusterRoutingPolicy of(String[] clusterIds)
Creates a new instance of MultiClusterRoutingPolicy with specified cluster ids to
route to.
Parameter |
Name |
Description |
clusterIds |
String[]
|
of(Set<String> clusterIds)
public static AppProfile.MultiClusterRoutingPolicy of(Set<String> clusterIds)
Creates a new instance of MultiClusterRoutingPolicy with specified cluster ids to
route to.
Parameter |
Name |
Description |
clusterIds |
Set<String>
|
withRowAffinity()
public static AppProfile.MultiClusterRoutingPolicy withRowAffinity()
Creates a new instance of MultiClusterRoutingPolicy.
withRowAffinity(String[] clusterIds)
public static AppProfile.MultiClusterRoutingPolicy withRowAffinity(String[] clusterIds)
Creates a new instance of MultiClusterRoutingPolicy with row affinity enabled and
specified cluster ids to route to.
Parameter |
Name |
Description |
clusterIds |
String[]
|
withRowAffinity(Set<String> clusterIds)
public static AppProfile.MultiClusterRoutingPolicy withRowAffinity(Set<String> clusterIds)
Creates a new instance of MultiClusterRoutingPolicy with specified cluster ids to
route to.
Parameter |
Name |
Description |
clusterIds |
Set<String>
|
Methods
equals(Object o)
public boolean equals(Object o)
Parameter |
Name |
Description |
o |
Object
|
Overrides
getClusterIds()
public Set<String> getClusterIds()
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]