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,
<RetentionLease> leases)
boolean
id)
RetentionLease.id()
.boolean
o)
static RetentionLeases
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
XContent
. id)
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)}., , , , , , ,
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 from
- if an I/O exception occurs reading from the streamRetentionLease.id()
.id
- the retention lease IDid
- the retention lease IDRetentionLeases(StreamInput)
(StreamInput)}.toXContent
in interface org.elasticsearch.common.xcontent.ToXContent
XContent
. This method assumes that the retention
leases were converted to XContent
via toXContent(XContentBuilder, Params)
.parser
- the parser
in class
in class
in class