Package com.google.mu.util.concurrent
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionFor application (server) owners to override any framework or library plugins.For server framework authors to implement a framework-configured standard plugin. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FRAMEWORK_STANDARD
For server framework authors to implement a framework-configured standard plugin. -
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
-
values
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
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 nameNullPointerException
- if the argument is null
-