Class ReadException.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ReadException.Builder>
co.elastic.clients.elasticsearch.ccr.ReadException.Builder
- All Implemented Interfaces:
WithJson<ReadException.Builder>,ObjectBuilder<ReadException>
- Enclosing class:
- ReadException
public static class ReadException.Builder
extends WithJsonObjectBuilderBase<ReadException.Builder>
implements ObjectBuilder<ReadException>
Builder for
ReadException.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aReadException.final ReadException.Builderexception(ErrorCause value) Required - The exception that caused the read to fail.final ReadException.BuilderRequired - The exception that caused the read to fail.final ReadException.BuilderfromSeqNo(long value) Required - The starting sequence number of the batch requested from the leader.final ReadException.Builderretries(int value) Required - The number of times the batch has been retried.protected ReadException.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
exception
Required - The exception that caused the read to fail.API name:
exception -
exception
public final ReadException.Builder exception(Function<ErrorCause.Builder, ObjectBuilder<ErrorCause>> fn) Required - The exception that caused the read to fail.API name:
exception -
fromSeqNo
Required - The starting sequence number of the batch requested from the leader.API name:
from_seq_no -
retries
Required - The number of times the batch has been retried.API name:
retries -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ReadException.Builder>
-
build
Builds aReadException.- Specified by:
buildin interfaceObjectBuilder<ReadException>- Throws:
NullPointerException- if some of the required fields are null.
-