Enum Class StructuredConcurrencyExecutorPlugin.Priority

java.lang.Object
java.lang.Enum<StructuredConcurrencyExecutorPlugin.Priority>
com.google.mu.util.concurrent.StructuredConcurrencyExecutorPlugin.Priority
All Implemented Interfaces:
Serializable, Comparable<StructuredConcurrencyExecutorPlugin.Priority>, java.lang.constant.Constable
Enclosing class:
StructuredConcurrencyExecutorPlugin

public static enum StructuredConcurrencyExecutorPlugin.Priority extends Enum<StructuredConcurrencyExecutorPlugin.Priority>
Plugin priority from low to high. A plugin with higher priority will be picked over lower priority.
  • Enum Constant Details Link icon

    • FRAMEWORK_STANDARD Link icon

      public static final StructuredConcurrencyExecutorPlugin.Priority FRAMEWORK_STANDARD
      For server framework authors to implement a framework-configured standard plugin.
    • APPLICATION_SPECIFIC Link icon

      public static final StructuredConcurrencyExecutorPlugin.Priority APPLICATION_SPECIFIC
      For application (server) owners to override any framework or library plugins.

      For example, if you need structured concurrency but not virtual threads, perhaps because your application is a command-line tool or batch-processing pipeline where blocking a few OS threads isn't a problem, you may create a non-virtual-thread plugin at APPLICATION_SPECIFIC priority so that you don't need to worry about go/virtual-thread-optin.

  • Method Details Link icon

    • values Link icon

      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf Link icon

      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null