Commit Class

public final class Commit
extends ExpandableStringEnum<Commit>

Replica commit mode in availability group.

Field Summary

Modifier and Type Field and Description
static final Commit ASYNCHRONOUS_COMMIT

Static value ASYNCHRONOUS_COMMIT for Commit.

static final Commit SYNCHRONOUS_COMMIT

Static value SYNCHRONOUS_COMMIT for Commit.

Constructor Summary

Constructor Description
Commit()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Commit value.

Method Summary

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

Creates or finds a Commit from its string representation.

static Collection<Commit> values()

Gets known Commit values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ASYNCHRONOUS_COMMIT

public static final Commit ASYNCHRONOUS_COMMIT

Static value ASYNCHRONOUS_COMMIT for Commit.

SYNCHRONOUS_COMMIT

public static final Commit SYNCHRONOUS_COMMIT

Static value SYNCHRONOUS_COMMIT for Commit.

Constructor Details

Commit

@Deprecated
public Commit()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Commit value.

Method Details

fromString

public static Commit fromString(String name)

Creates or finds a Commit from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding Commit.

values

public static Collection<Commit> values()

Gets known Commit values.

Returns:

known Commit values.

Applies to