public class RequestOrResponse extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
code |
protected String |
group |
protected String |
leaderId |
protected String |
localId |
protected String |
remoteId |
protected long |
term |
| Constructor and Description |
|---|
RequestOrResponse() |
| Modifier and Type | Method and Description |
|---|---|
String |
baseInfo() |
RequestOrResponse |
code(int code) |
RequestOrResponse |
copyBaseInfo(RequestOrResponse other) |
int |
getCode() |
String |
getGroup() |
String |
getLeaderId() |
String |
getLocalId() |
String |
getRemoteId() |
long |
getTerm() |
void |
setCode(int code) |
void |
setGroup(String group) |
void |
setIds(String localId,
String remoteId,
String leaderId) |
void |
setLeaderId(String leaderId) |
void |
setLocalId(String localId) |
void |
setRemoteId(String remoteId) |
void |
setTerm(long term) |
protected String group
protected String remoteId
protected String localId
protected int code
protected String leaderId
protected long term
public String getGroup()
public void setGroup(String group)
public int getCode()
public void setCode(int code)
public RequestOrResponse code(int code)
public String getRemoteId()
public void setRemoteId(String remoteId)
public String getLocalId()
public void setLocalId(String localId)
public String getLeaderId()
public void setLeaderId(String leaderId)
public long getTerm()
public void setTerm(long term)
public RequestOrResponse copyBaseInfo(RequestOrResponse other)
public String baseInfo()
Copyright © 2023. All rights reserved.