public static enum TransactionRetryListener.RetryResult extends Enum<TransactionRetryListener.RetryResult>
Enum Constant and Description |
---|
RETRY_ABORTED_AND_MAX_ATTEMPTS_EXCEEDED
The retry was aborted by Spanner and the maximum number of retry attempts allowed has been
exceeded.
|
RETRY_ABORTED_AND_RESTARTING
The retry was aborted by Spanner and another retry attempt will be started.
|
RETRY_ABORTED_DUE_TO_CONCURRENT_MODIFICATION
The retry was aborted by the
Connection because of a concurrent modification. |
RETRY_ERROR
An unexpected error occurred during transaction retry, the transaction cannot continue and
will throw an exception.
|
RETRY_SUCCESSFUL
The retry executed successfully and the transaction will continue.
|
Modifier and Type | Method and Description |
---|---|
static TransactionRetryListener.RetryResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionRetryListener.RetryResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionRetryListener.RetryResult RETRY_SUCCESSFUL
public static final TransactionRetryListener.RetryResult RETRY_ABORTED_AND_RESTARTING
public static final TransactionRetryListener.RetryResult RETRY_ABORTED_DUE_TO_CONCURRENT_MODIFICATION
Connection
because of a concurrent modification. The
transaction cannot continue and will throw an AbortedDueToConcurrentModificationException
.public static final TransactionRetryListener.RetryResult RETRY_ABORTED_AND_MAX_ATTEMPTS_EXCEEDED
AbortedException
.public static final TransactionRetryListener.RetryResult RETRY_ERROR
public static TransactionRetryListener.RetryResult[] values()
for (TransactionRetryListener.RetryResult c : TransactionRetryListener.RetryResult.values()) System.out.println(c);
public static TransactionRetryListener.RetryResult valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2019 Google LLC. All rights reserved.