Class RequestStats.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestStats.Builder
- All Implemented Interfaces:
CopyableBuilder<RequestStats.Builder,,RequestStats> MutableBuilder<RequestStats.Builder,,RequestStats> ObjectBuilder<RequestStats>
- Enclosing class:
RequestStats
public static class RequestStats.Builder
extends ObjectBuilderBase
implements CopyableBuilder<RequestStats.Builder,RequestStats>
Builder for
RequestStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRequestStats.copy()Create a new builderCopyableBuilderthat is a copy of this one.final RequestStats.BuilderThe number of current request operations.final RequestStats.BuilderThe total time spent on request operations.final RequestStats.BuilderThe total time spent on request operations.final RequestStats.BuildertimeInMillis(Long value) The total time spent on request operations in milliseconds.final RequestStats.BuilderThe total number of request operations.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<RequestStats.Builder,RequestStats> - Returns:
- a new builder instance.
-
current
The number of current request operations.API name:
current -
time
The total time spent on request operations.API name:
time -
time
The total time spent on request operations.API name:
time -
timeInMillis
The total time spent on request operations in milliseconds.API name:
time_in_millis -
total
The total number of request operations.API name:
total -
build
Builds aRequestStats.- Specified by:
buildin interfaceObjectBuilder<RequestStats>- Throws:
NullPointerException- if some of the required fields are null.
-