Enum FDBTransactionPriority

    • Enum Constant Detail

      • BATCH

        public static final FDBTransactionPriority BATCH
        The priority level that should be used for batch operations. This should be used for discretionary work such as background jobs that do not have strict time pressure to complete in the near future. For example online index builds and statistics collection should often happen at batch priority. This signals to the database that this work should be rate limited at a higher rate if it would impact work done at a higher priority.
      • DEFAULT

        public static final FDBTransactionPriority DEFAULT
        The default priority level for most transactions. This should be used for most work unless BATCH priority is more appropriate. The system will apply normal rate limiting and throttling mechanisms to the transaction.
      • SYSTEM_IMMEDIATE

        public static final FDBTransactionPriority SYSTEM_IMMEDIATE
        The priority level for system operations. This is used internally within FoundationDB for operations that must complete immediately for all operations, and it bypasses any rate limiting. For this reason, it should generally not be used by users of the system, and it is included mainly for completeness.
    • Method Detail

      • values

        public static FDBTransactionPriority[] values()
        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 (FDBTransactionPriority c : FDBTransactionPriority.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FDBTransactionPriority valueOf​(String name)
        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