TransactionOptions

public final class TransactionOptions


Options to customize transaction behavior for runTransaction.

Summary

Nested types

public final class TransactionOptions.Builder

A Builder for creating TransactionOptions.

Public fields

final int

Public methods

boolean
int

Get maximum number of attempts to commit, after which transaction fails.

int
String

Public fields

maxAttempts

public final int maxAttempts

Public methods

equals

public boolean equals(Object o)

getMaxAttempts

public int getMaxAttempts()

Get maximum number of attempts to commit, after which transaction fails. Default is 5.

Returns
int

The maximum number of attempts

hashCode

public int hashCode()

toString

public String toString()