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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum 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_REUSENo 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_TASKThread-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_LOCALThread-local per JVM. Likely the most efficient.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
supplier
 
-