SingleClusterRouting class

Unconditionally routes all read/write requests to a specific cluster. This option preserves read-your-writes consistency but does not improve availability.

Constructors

SingleClusterRouting({Input<bool>? allowTransactionalWrites, Input<String>? clusterId})
Creates a new SingleClusterRouting. allowTransactionalWrites Whether or not CheckAndMutateRow and ReadModifyWriteRow requests are allowed by this app profile. It is unsafe to send these requests to the same table/row/column in multiple clusters. clusterId The cluster to which read/write requests should be routed.
const
SingleClusterRouting.fromMap(Map<String, dynamic> map)
factory

Properties

allowTransactionalWrites → Input<bool>?
Whether or not CheckAndMutateRow and ReadModifyWriteRow requests are allowed by this app profile. It is unsafe to send these requests to the same table/row/column in multiple clusters.
final
clusterId → Input<String>?
The cluster to which read/write requests should be routed.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited