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>
  • Enum Constant Details

    • NO_REUSE

      public static final IngestionTaskReusableObjects.Strategy 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

      public static final IngestionTaskReusableObjects.Strategy THREAD_LOCAL_PER_INGESTION_TASK
      Thread-local per ActiveActiveStoreIngestionTask. 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

      public static final IngestionTaskReusableObjects.Strategy SINGLETON_THREAD_LOCAL
      Thread-local per JVM. Likely the most efficient.
  • Method Details

    • values

      public static IngestionTaskReusableObjects.Strategy[] 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

      public static IngestionTaskReusableObjects.Strategy valueOf(String name)
      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
    • supplier