@NotThreadSafe public final class MasterInfo extends Object
Constructor and Description |
---|
MasterInfo(long id,
Address address)
Creates a new instance of
MasterInfo . |
Modifier and Type | Method and Description |
---|---|
Address |
getAddress() |
long |
getId() |
long |
getLastUpdatedTimeMs() |
String |
toString() |
void |
updateLastUpdatedTimeMs()
Updates the last updated time of the master in ms.
|
public MasterInfo(long id, Address address)
MasterInfo
.id
- the master id to useaddress
- the master address to usepublic Address getAddress()
public long getId()
public long getLastUpdatedTimeMs()
public void updateLastUpdatedTimeMs()
Copyright © 2023. All Rights Reserved.