Enum Database.ConcurrencyMode (3.30.2)

public enum Database.ConcurrencyMode extends Enum<Database.ConcurrencyMode> implements ProtocolMessageEnum

The type of concurrency control mode for transactions.

Protobuf enum google.firestore.admin.v1.Database.ConcurrencyMode

Implements

ProtocolMessageEnum

Static Fields

Name Description
CONCURRENCY_MODE_UNSPECIFIED

Not used.

CONCURRENCY_MODE_UNSPECIFIED = 0;

CONCURRENCY_MODE_UNSPECIFIED_VALUE

Not used.

CONCURRENCY_MODE_UNSPECIFIED = 0;

OPTIMISTIC

Use optimistic concurrency control by default. This mode is available for Cloud Firestore databases.

OPTIMISTIC = 1;

OPTIMISTIC_VALUE

Use optimistic concurrency control by default. This mode is available for Cloud Firestore databases.

OPTIMISTIC = 1;

OPTIMISTIC_WITH_ENTITY_GROUPS

Use optimistic concurrency control with entity groups by default.

This is the only available mode for Cloud Datastore.

This mode is also available for Cloud Firestore with Datastore Mode but is not recommended.

OPTIMISTIC_WITH_ENTITY_GROUPS = 3;

OPTIMISTIC_WITH_ENTITY_GROUPS_VALUE

Use optimistic concurrency control with entity groups by default.

This is the only available mode for Cloud Datastore.

This mode is also available for Cloud Firestore with Datastore Mode but is not recommended.

OPTIMISTIC_WITH_ENTITY_GROUPS = 3;

PESSIMISTIC

Use pessimistic concurrency control by default. This mode is available for Cloud Firestore databases.

This is the default setting for Cloud Firestore.

PESSIMISTIC = 2;

PESSIMISTIC_VALUE

Use pessimistic concurrency control by default. This mode is available for Cloud Firestore databases.

This is the default setting for Cloud Firestore.

PESSIMISTIC = 2;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()