Partilhar via


DatabaseReadScale Class

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 DatabaseReadScale DISABLED

Static value Disabled for DatabaseReadScale.

static final DatabaseReadScale ENABLED

Static value Enabled for DatabaseReadScale.

Constructor Summary

Constructor Description
DatabaseReadScale()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DatabaseReadScale value.

Method Summary

Modifier and Type Method and Description
static DatabaseReadScale fromString(String name)

Creates or finds a DatabaseReadScale from its string representation.

static Collection<DatabaseReadScale> values()

Gets known DatabaseReadScale values.

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

Use the fromString(String name) factory method.

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:

name - a name to look for.

Returns:

the corresponding DatabaseReadScale.

values

public static Collection values()

Gets known DatabaseReadScale values.

Returns:

known DatabaseReadScale values.

Applies to