Enum TransactionRetryListener.RetryResult

    • Enum Constant Detail

      • RETRY_ABORTED_AND_RESTARTING

        public static final TransactionRetryListener.RetryResult RETRY_ABORTED_AND_RESTARTING
        Deprecated.
        The retry was aborted by Spanner and another retry attempt will be started.
      • RETRY_ABORTED_DUE_TO_CONCURRENT_MODIFICATION

        public static final TransactionRetryListener.RetryResult RETRY_ABORTED_DUE_TO_CONCURRENT_MODIFICATION
        Deprecated.
        The retry was aborted by the Connection because of a concurrent modification. The transaction cannot continue and will throw an AbortedDueToConcurrentModificationException.
      • RETRY_ABORTED_AND_MAX_ATTEMPTS_EXCEEDED

        public static final TransactionRetryListener.RetryResult RETRY_ABORTED_AND_MAX_ATTEMPTS_EXCEEDED
        Deprecated.
        The retry was aborted by Spanner and the maximum number of retry attempts allowed has been exceeded. The transaction cannot continue and will throw an AbortedException.
      • RETRY_ERROR

        public static final TransactionRetryListener.RetryResult RETRY_ERROR
        Deprecated.
        An unexpected error occurred during transaction retry, the transaction cannot continue and will throw an exception.
    • Method Detail

      • values

        public static TransactionRetryListener.RetryResult[] values()
        Deprecated.
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TransactionRetryListener.RetryResult c : TransactionRetryListener.RetryResult.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TransactionRetryListener.RetryResult valueOf​(String name)
        Deprecated.
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null