public class FollowerSlotStatus extends BaseSlotStatus implements Serializable
Mar 01, 2021
BaseSlotStatus.LeaderStatusrole, server, slotId, slotLeaderEpoch| 构造器和说明 |
|---|
FollowerSlotStatus(int slotId,
long slotLeaderEpoch,
String server,
long lastSyncTaskStartTime,
long lastLeaderSyncTime)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getLastLeaderSyncTime()
Gets get last follower sync time.
|
long |
getLastSyncTaskStartTime()
Gets get last sync task start time.
|
String |
toString()
To string string.
|
getRole, getServer, getSlotId, getSlotLeaderEpochpublic FollowerSlotStatus(int slotId,
long slotLeaderEpoch,
String server,
long lastSyncTaskStartTime,
long lastLeaderSyncTime)
slotId - the slot idslotLeaderEpoch - the slot leader epochserver - the serverlastSyncTaskStartTime - the last sync task start timelastLeaderSyncTime - the last leader sync timepublic long getLastSyncTaskStartTime()
public long getLastLeaderSyncTime()
public String toString()
toString 在类中 BaseSlotStatusCopyright © 2023 The Ant Financial. All rights reserved.