Module org.elasticsearch.server
Package org.elasticsearch.action.support
Record Class IndicesOptions.GatekeeperOptions
java.lang.Object
java.lang.Record
org.elasticsearch.action.support.IndicesOptions.GatekeeperOptions
- Record Components:
allowAliasToMultipleIndices
- , allow aliases to multiple indices, true by default.allowClosedIndices
- , allow closed indices, true by default.allowFailureIndices
- , allow failure indices in the response, true by defaultignoreThrottled
- , filters out throttled (aka frozen indices), defaults to true. This is deprecated and the only one that only filters and never throws an error.
- All Implemented Interfaces:
ToXContent
,ToXContentFragment
- Enclosing class:
- IndicesOptions
public static record IndicesOptions.GatekeeperOptions(boolean allowAliasToMultipleIndices, boolean allowClosedIndices, boolean allowFailureIndices, boolean ignoreThrottled)
extends Record
implements ToXContentFragment
The "gatekeeper" options apply on all indices that have been selected by the other Options. It contains two type of flags:
- The "allow*" flags, which purpose is to enable actions to define certain conditions that need to apply on the concrete indices
they accept. For example, single-index actions will set allowAliasToMultipleIndices to false, while search will not accept a
closed index etc. These options are not configurable by the end-user.
- The ignoreThrottled flag, which is a deprecated flag that will filter out frozen indices.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IndicesOptions.GatekeeperOptions
static final String
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Constructor Summary
ConstructorsConstructorDescriptionGatekeeperOptions
(boolean allowAliasToMultipleIndices, boolean allowClosedIndices, boolean allowFailureIndices, boolean ignoreThrottled) Creates an instance of aGatekeeperOptions
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of theallowAliasToMultipleIndices
record component.boolean
Returns the value of theallowClosedIndices
record component.boolean
Returns the value of theallowFailureIndices
record component.builder()
builder
(IndicesOptions.GatekeeperOptions gatekeeperOptions) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Deprecated.parseParameter
(Object ignoreThrottled, IndicesOptions.GatekeeperOptions defaultOptions) final String
toString()
Returns a string representation of this record class.toXContent
(XContentBuilder builder, ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
IGNORE_THROTTLED
- See Also:
-
DEFAULT
-
-
Constructor Details
-
GatekeeperOptions
public GatekeeperOptions(boolean allowAliasToMultipleIndices, boolean allowClosedIndices, boolean allowFailureIndices, @Deprecated boolean ignoreThrottled) Creates an instance of aGatekeeperOptions
record class.- Parameters:
allowAliasToMultipleIndices
- the value for theallowAliasToMultipleIndices
record componentallowClosedIndices
- the value for theallowClosedIndices
record componentallowFailureIndices
- the value for theallowFailureIndices
record componentignoreThrottled
- the value for theignoreThrottled
record component
-
-
Method Details
-
parseParameter
public static IndicesOptions.GatekeeperOptions parseParameter(Object ignoreThrottled, IndicesOptions.GatekeeperOptions defaultOptions) -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-
builder
-
builder
public static IndicesOptions.GatekeeperOptions.Builder builder(IndicesOptions.GatekeeperOptions gatekeeperOptions) -
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 with '=='. -
allowAliasToMultipleIndices
public boolean allowAliasToMultipleIndices()Returns the value of theallowAliasToMultipleIndices
record component.- Returns:
- the value of the
allowAliasToMultipleIndices
record component
-
allowClosedIndices
public boolean allowClosedIndices()Returns the value of theallowClosedIndices
record component.- Returns:
- the value of the
allowClosedIndices
record component
-
allowFailureIndices
public boolean allowFailureIndices()Returns the value of theallowFailureIndices
record component.- Returns:
- the value of the
allowFailureIndices
record component
-
ignoreThrottled
Deprecated.Returns the value of theignoreThrottled
record component.- Returns:
- the value of the
ignoreThrottled
record component
-