Record Class ExecutorNames

java.lang.Object
java.lang.Record
org.elasticsearch.indices.ExecutorNames

public record ExecutorNames(String threadPoolForGet, String threadPoolForSearch, String threadPoolForWrite) extends Record
A class that gathers the names of thread pool executors that should be used for a particular system index or system data stream. This object is used both by the SystemIndexDescriptor and the SystemDataStreamDescriptor classes.
  • Field Details

    • DEFAULT_SYSTEM_INDEX_THREAD_POOLS

      public static ExecutorNames DEFAULT_SYSTEM_INDEX_THREAD_POOLS
      The thread pools for a typical system index.
    • DEFAULT_SYSTEM_DATA_STREAM_THREAD_POOLS

      public static ExecutorNames DEFAULT_SYSTEM_DATA_STREAM_THREAD_POOLS
      The thread pools for a typical system data stream. These are also the usual thread pools for non-system indices and data streams.
    • CRITICAL_SYSTEM_INDEX_THREAD_POOLS

      public static ExecutorNames CRITICAL_SYSTEM_INDEX_THREAD_POOLS
      The thread pools that should be used for critical system index operations.
  • Constructor Details

    • ExecutorNames

      public ExecutorNames(String threadPoolForGet, String threadPoolForSearch, String threadPoolForWrite)
      Create a new collection of thread pool names for a system descriptor to use.
      Parameters:
      threadPoolForGet - Name of the thread pool that get operations should use.
      threadPoolForSearch - Name of the thread pool that search operations should use. (In same cases, this is the same as the name of the pool for get operations.)
      threadPoolForWrite - Name of the thread pool that write operations should use.
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • threadPoolForGet

      public String threadPoolForGet()
      Returns the value of the threadPoolForGet record component.
      Returns:
      the value of the threadPoolForGet record component
    • threadPoolForSearch

      public String threadPoolForSearch()
      Returns the value of the threadPoolForSearch record component.
      Returns:
      the value of the threadPoolForSearch record component
    • threadPoolForWrite

      public String threadPoolForWrite()
      Returns the value of the threadPoolForWrite record component.
      Returns:
      the value of the threadPoolForWrite record component