Class ReplicaHeartbeatInfo
- java.lang.Object
-
- com.linkedin.davinci.kafka.consumer.ReplicaHeartbeatInfo
-
public class ReplicaHeartbeatInfo extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ReplicaHeartbeatInfo(java.lang.String replicaId, java.lang.String region, java.lang.String leaderState, boolean readyToServe, long heartbeat, long lag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
long
getHeartbeat()
long
getLag()
java.lang.String
getLeaderState()
java.lang.String
getRegion()
java.lang.String
getReplicaId()
int
hashCode()
boolean
isReadyToServe()
void
setHeartbeat(long heartbeat)
void
setLag(long lag)
void
setLeaderState(java.lang.String leaderState)
void
setReadyToServe(boolean readyToServe)
void
setRegion(java.lang.String region)
void
setReplicaId(java.lang.String replicaId)
java.lang.String
toString()
-
-
-
Method Detail
-
getHeartbeat
public long getHeartbeat()
-
setHeartbeat
public void setHeartbeat(long heartbeat)
-
getLeaderState
public java.lang.String getLeaderState()
-
setLeaderState
public void setLeaderState(java.lang.String leaderState)
-
getReplicaId
public java.lang.String getReplicaId()
-
setReplicaId
public void setReplicaId(java.lang.String replicaId)
-
getRegion
public java.lang.String getRegion()
-
setRegion
public void setRegion(java.lang.String region)
-
getLag
public long getLag()
-
setLag
public void setLag(long lag)
-
isReadyToServe
public boolean isReadyToServe()
-
setReadyToServe
public void setReadyToServe(boolean readyToServe)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-