Enum TransactionOptions.ConcurrencyMode (3.43.1)

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

The type of concurrency control mode for transactions.

Protobuf enum google.firestore.v1.TransactionOptions.ConcurrencyMode

Implements

ProtocolMessageEnum

Static Fields

Name Description
CONCURRENCY_MODE_UNSPECIFIED

Start the transaction with the database-level default concurrency mode.

CONCURRENCY_MODE_UNSPECIFIED = 0;

CONCURRENCY_MODE_UNSPECIFIED_VALUE

Start the transaction with the database-level default concurrency mode.

CONCURRENCY_MODE_UNSPECIFIED = 0;

OPTIMISTIC

Use optimistic concurrency control for the new transaction.

OPTIMISTIC = 1;

OPTIMISTIC_VALUE

Use optimistic concurrency control for the new transaction.

OPTIMISTIC = 1;

PESSIMISTIC

Use pessimistic concurrency control for the new transaction.

PESSIMISTIC = 2;

PESSIMISTIC_VALUE

Use pessimistic concurrency control for the new transaction.

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()