Class ShardLease
java.lang.Object
org.opensearch.client.opensearch.indices.stats.ShardLease
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<ShardLease.Builder,ShardLease>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ShardLease
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<ShardLease.Builder,ShardLease>
The retention lease details.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ShardLease> Json deserializer forShardLease -
Method Summary
Modifier and TypeMethodDescriptionstatic ShardLease.Builderbuilder()booleaninthashCode()final Stringid()Required - API name:idstatic ShardLeasefinal longRequired - API name:retaining_seq_novoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringsource()Required - API name:sourcefinal longRequired - API name:timestampCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forShardLease
-
-
Method Details
-
of
-
id
Required - API name:id -
retainingSeqNo
public final long retainingSeqNo()Required - API name:retaining_seq_no -
source
Required - API name:source -
timestamp
public final long timestamp()Required - API name:timestamp -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ShardLease.Builder,ShardLease> - Returns:
- a new builder instance.
-
builder
-
setupShardLeaseDeserializer
-
hashCode
public int hashCode() -
equals
-