Class ShardLease
java.lang.Object
co.elastic.clients.elasticsearch.indices.stats.ShardLease
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class ShardLease extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShardLease.BuilderBuilder forShardLease. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ShardLease>_DESERIALIZERJson deserializer forShardLease -
Method Summary
Modifier and Type Method Description java.lang.Stringid()Required - API name:idstatic ShardLeaseof(java.util.function.Function<ShardLease.Builder,ObjectBuilder<ShardLease>> fn)longretainingSeqNo()Required - 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 voidsetupShardLeaseDeserializer(ObjectDeserializer<ShardLease.Builder> op)java.lang.Stringsource()Required - API name:sourcelongtimestamp()Required - API name:timestampjava.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forShardLease
-
-
Method Details
-
of
public static ShardLease of(java.util.function.Function<ShardLease.Builder,ObjectBuilder<ShardLease>> fn) -
id
public final java.lang.String id()Required - API name:id -
retainingSeqNo
public final long retainingSeqNo()Required - API name:retaining_seq_no -
timestamp
public final long timestamp()Required - API name:timestamp -
source
public final java.lang.String source()Required - API name:source -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupShardLeaseDeserializer
-