Class Breaker.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Breaker.Builder>
co.elastic.clients.elasticsearch.nodes.Breaker.Builder
- All Implemented Interfaces:
WithJson<Breaker.Builder>
,ObjectBuilder<Breaker>
- Enclosing class:
- Breaker
public static class Breaker.Builder
extends WithJsonObjectBuilderBase<Breaker.Builder>
implements ObjectBuilder<Breaker>
Builder for
Breaker
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aBreaker
.final Breaker.Builder
estimatedSize
(String value) Estimated memory used for the operation.final Breaker.Builder
estimatedSizeInBytes
(Long value) Estimated memory used, in bytes, for the operation.final Breaker.Builder
Memory limit for the circuit breaker.final Breaker.Builder
limitSizeInBytes
(Long value) Memory limit, in bytes, for the circuit breaker.final Breaker.Builder
A constant that all estimates for the circuit breaker are multiplied with to calculate a final estimate.protected Breaker.Builder
self()
final Breaker.Builder
Total number of times the circuit breaker has been triggered and prevented an out of memory error.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
estimatedSize
Estimated memory used for the operation.API name:
estimated_size
-
estimatedSizeInBytes
Estimated memory used, in bytes, for the operation.API name:
estimated_size_in_bytes
-
limitSize
Memory limit for the circuit breaker.API name:
limit_size
-
limitSizeInBytes
Memory limit, in bytes, for the circuit breaker.API name:
limit_size_in_bytes
-
overhead
A constant that all estimates for the circuit breaker are multiplied with to calculate a final estimate.API name:
overhead
-
tripped
Total number of times the circuit breaker has been triggered and prevented an out of memory error.API name:
tripped
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<Breaker.Builder>
-
build
Builds aBreaker
.- Specified by:
build
in interfaceObjectBuilder<Breaker>
- Throws:
NullPointerException
- if some of the required fields are null.
-