public final class Slot extends Object implements Serializable, Cloneable
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Slot.Role |
| 构造器和说明 |
|---|
Slot(int id,
String leader,
long leaderEpoch,
Collection<String> followers) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Slot |
clone() |
boolean |
equals(Object o) |
Set<String> |
getFollowers()
Getter method for property followers.
|
int |
getId()
Getter method for property id.
|
String |
getLeader()
Getter method for property leader.
|
long |
getLeaderEpoch()
Getter method for property leaderEpoch.
|
int |
hashCode() |
String |
toString() |
public Slot(int id,
String leader,
long leaderEpoch,
Collection<String> followers)
public int getId()
public String getLeader()
public Set<String> getFollowers()
public long getLeaderEpoch()
Copyright © 2023 The Ant Financial. All rights reserved.