Class AppProfile.MultiClusterRoutingPolicy (2.20.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.

Returns
TypeDescription
AppProfile.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
NameDescription
clusterIdsString[]
Returns
TypeDescription
AppProfile.MultiClusterRoutingPolicy

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
NameDescription
clusterIdsSet<String>
Returns
TypeDescription
AppProfile.MultiClusterRoutingPolicy

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getClusterIds()

public Set<String> getClusterIds()
Returns
TypeDescription
Set<String>

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides