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.ToXContentFragment
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
static RetentionLeases
EMPTY_PARAMS
RetentionLeases(long primaryTerm,
long version,
Collection<RetentionLease> leases)
boolean
RetentionLease.id()
.boolean
static RetentionLeases
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
XContent
.int
hashCode()
leases()
long
toString()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params)
long
version()
void
writeTo(StreamOutput out)
RetentionLeases(StreamInput)
(StreamInput)}.clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isFragment
primaryTerm
- 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 Writeable
out
- 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.ToXContent
IOException
XContent
. This method assumes that the retention
leases were converted to XContent
via toXContent(XContentBuilder, Params)
.parser
- the parser