@NotThreadSafe public final class ProxyInfo extends Object
Constructor and Description |
---|
ProxyInfo(NetAddress address)
Creates a new instance of
ProxyInfo . |
Modifier and Type | Method and Description |
---|---|
NetAddress |
getAddress() |
long |
getLastHeartbeatTimeMs() |
String |
getRevision() |
long |
getStartTimeMs() |
String |
getVersion() |
void |
setRevision(String revision) |
void |
setStartTimeMs(long startTimeMs) |
void |
setVersion(String version) |
String |
toString() |
void |
updateLastHeartbeatTimeMs()
Updates the last updated time of the proxy in ms.
|
public ProxyInfo(NetAddress address)
ProxyInfo
.address
- the proxy address to usepublic NetAddress getAddress()
public long getLastHeartbeatTimeMs()
public long getStartTimeMs()
public String getVersion()
public String getRevision()
public void setStartTimeMs(long startTimeMs)
startTimeMs
- the start time of the proxy in mspublic void setVersion(String version)
version
- the version of the proxypublic void setRevision(String revision)
revision
- the revision of the proxypublic void updateLastHeartbeatTimeMs()
Copyright © 2023. All Rights Reserved.