Class ActionRetry.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ism.ActionRetry.Builder
- All Implemented Interfaces:
CopyableBuilder<ActionRetry.Builder,,ActionRetry> MutableBuilder<ActionRetry.Builder,,ActionRetry> ObjectBuilder<ActionRetry>
- Enclosing class:
ActionRetry
public static class ActionRetry.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ActionRetry.Builder,ActionRetry>
Builder for
ActionRetry.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ActionRetry.BuilderThe backoff strategy for retries.build()Builds aActionRetry.copy()Create a new builderCopyableBuilderthat is a copy of this one.final ActionRetry.BuilderThe number of retry attempts.final ActionRetry.BuilderThe delay between retry attempts.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<ActionRetry.Builder,ActionRetry> - Returns:
- a new builder instance.
-
backoff
The backoff strategy for retries.API name:
backoff -
count
The number of retry attempts.API name:
count -
delay
The delay between retry attempts.API name:
delay -
build
Builds aActionRetry.- Specified by:
buildin interfaceObjectBuilder<ActionRetry>- Throws:
NullPointerException- if some of the required fields are null.
-