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 class
ShardLease.Builder
Builder forShardLease
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ShardLease>
_DESERIALIZER
Json deserializer forShardLease
-
Method Summary
Modifier and Type Method Description java.lang.String
id()
Required - API name:id
static ShardLease
of(java.util.function.Function<ShardLease.Builder,ObjectBuilder<ShardLease>> fn)
long
retainingSeqNo()
Required - API name:retaining_seq_no
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupShardLeaseDeserializer(ObjectDeserializer<ShardLease.Builder> op)
java.lang.String
source()
Required - API name:source
long
timestamp()
Required - API name:timestamp
java.lang.String
toString()
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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupShardLeaseDeserializer
-