primaryTerm
public long primaryTerm()
The primary term of this retention lease collection.
- Returns:
- the primary term
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragmentorg.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>static RetentionLeasesEMPTY_PARAMSRetentionLeases(long primaryTerm,
long version,
Collection<RetentionLease> leases)booleanRetentionLease.id().booleanstatic RetentionLeasesfromXContent(org.elasticsearch.common.xcontent.XContentParser parser)XContent.inthashCode()leases()longtoString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params)longversion()voidwriteTo(StreamOutput out)RetentionLeases(StreamInput) (StreamInput)}.clone, finalize, getClass, notify, notifyAll, wait, wait, waitisFragmentprimaryTerm - the primary term under which this retention lease collection was createdversion - the version of this retention lease collectionleases - the retention leaseswriteTo(StreamOutput).in - the stream to construct the retention lease collection fromIOException - if an I/O exception occurs reading from the streamRetentionLease.id().id - the retention lease IDid - the retention lease IDRetentionLeases(StreamInput) (StreamInput)}.writeTo in interface Writeableout - the stream to write the retention lease collection toIOException - if an I/O exception occurs writing to the streamtoXContent in interface org.elasticsearch.common.xcontent.ToXContentIOExceptionXContent. This method assumes that the retention
leases were converted to XContent via toXContent(XContentBuilder, Params).parser - the parser