DatabaseReadScale Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. sql. models. DatabaseReadScale
- com.
- com.
public final class DatabaseReadScale
extends ExpandableStringEnum<DatabaseReadScale>
The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Database |
DISABLED
Static value Disabled for Database |
static final
Database |
ENABLED
Static value Enabled for Database |
Constructor Summary
Constructor | Description |
---|---|
DatabaseReadScale() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Database |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Database |
fromString(String name)
Creates or finds a Database |
static
Collection<Database |
values()
Gets known Database |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
DISABLED
public static final DatabaseReadScale DISABLED
Static value Disabled for DatabaseReadScale.
ENABLED
public static final DatabaseReadScale ENABLED
Static value Enabled for DatabaseReadScale.
Constructor Details
DatabaseReadScale
@Deprecated
public DatabaseReadScale()
Deprecated
Creates a new instance of DatabaseReadScale value.
Method Details
fromString
public static DatabaseReadScale fromString(String name)
Creates or finds a DatabaseReadScale from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known DatabaseReadScale values.
Returns:
Applies to
Azure SDK for Java