Enum Class IngestionTaskReusableObjects.Strategy
java.lang.Object
java.lang.Enum<IngestionTaskReusableObjects.Strategy>
com.linkedin.davinci.ingestion.utils.IngestionTaskReusableObjects.Strategy
- All Implemented Interfaces:
Serializable
,Comparable<IngestionTaskReusableObjects.Strategy>
,Constable
- Enclosing class:
- IngestionTaskReusableObjects
public static enum IngestionTaskReusableObjects.Strategy
extends Enum<IngestionTaskReusableObjects.Strategy>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo re-use, will pass null into the relevant code paths, which will result in new objects getting allocated on the fly, and needing to be garbage collected.Thread-local per JVM.Thread-local perActiveActiveStoreIngestionTask
. -
Method Summary
-
Enum Constant Details
-
NO_REUSE
No re-use, will pass null into the relevant code paths, which will result in new objects getting allocated on the fly, and needing to be garbage collected. -
THREAD_LOCAL_PER_INGESTION_TASK
Thread-local perActiveActiveStoreIngestionTask
. This avoids hot path allocations but is likely not very efficient, since there can be many AASIT and each will have its own independent set of objects, even if/when the AASIT becomes dormant. This is the first mode which was built, and it is considered stable. -
SINGLETON_THREAD_LOCAL
Thread-local per JVM. Likely the most efficient.
-
-
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
-
supplier
-