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 Summary
Modifier and TypeFieldDescriptionstatic ExecutorNames
The thread pools that should be used for critical system index operations.static ExecutorNames
The thread pools for a typical system data stream.static ExecutorNames
The thread pools for a typical system index. -
Constructor Summary
ConstructorDescriptionExecutorNames
(String threadPoolForGet, String threadPoolForSearch, String threadPoolForWrite) Create a new collection of thread pool names for a system descriptor to use. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thethreadPoolForGet
record component.Returns the value of thethreadPoolForSearch
record component.Returns the value of thethreadPoolForWrite
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
DEFAULT_SYSTEM_INDEX_THREAD_POOLS
The thread pools for a typical system index. -
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
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
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
threadPoolForGet
Returns the value of thethreadPoolForGet
record component.- Returns:
- the value of the
threadPoolForGet
record component
-
threadPoolForSearch
Returns the value of thethreadPoolForSearch
record component.- Returns:
- the value of the
threadPoolForSearch
record component
-
threadPoolForWrite
Returns the value of thethreadPoolForWrite
record component.- Returns:
- the value of the
threadPoolForWrite
record component
-