public class LeaderElectionRecord extends Object
Constructor and Description |
---|
LeaderElectionRecord(String holderIdentity,
Duration leaseDuration,
ZonedDateTime acquireTime,
ZonedDateTime renewTime,
int leaderTransitions) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ZonedDateTime |
getAcquireTime() |
String |
getHolderIdentity() |
int |
getLeaderTransitions() |
Duration |
getLeaseDuration() |
ZonedDateTime |
getRenewTime() |
Serializable |
getVersion() |
int |
hashCode() |
void |
setVersion(Serializable version) |
public LeaderElectionRecord(String holderIdentity, Duration leaseDuration, ZonedDateTime acquireTime, ZonedDateTime renewTime, int leaderTransitions)
public String getHolderIdentity()
public Duration getLeaseDuration()
public ZonedDateTime getAcquireTime()
public ZonedDateTime getRenewTime()
public int getLeaderTransitions()
public Serializable getVersion()
public void setVersion(Serializable version)
Copyright © 2015–2020 Red Hat. All rights reserved.