public final class TimedMemberState extends Object implements Cloneable, JsonSerializable
MemberState
with a timestamp.Constructor and Description |
---|
TimedMemberState() |
Modifier and Type | Method and Description |
---|---|
TimedMemberState |
clone() |
void |
fromJson(JsonObject json)
Extracts the state from the given
json object and mutates the
state of this object. |
String |
getClusterName() |
List<String> |
getMemberList() |
MemberStateImpl |
getMemberState() |
long |
getTime() |
boolean |
isLite() |
boolean |
isMaster() |
boolean |
isScriptingEnabled() |
boolean |
isSocketInterceptorEnabled() |
boolean |
isSslEnabled() |
void |
setClusterName(String clusterName) |
void |
setLite(boolean lite) |
void |
setMaster(boolean master) |
void |
setMemberList(List<String> memberList) |
void |
setMemberState(MemberStateImpl memberState) |
void |
setScriptingEnabled(boolean scriptingEnabled) |
void |
setSocketInterceptorEnabled(boolean socketInterceptorEnabled) |
void |
setSslEnabled(boolean sslEnabled) |
void |
setTime(long time) |
JsonObject |
toJson()
Serializes state represented by this object into a
JsonObject . |
String |
toString() |
public boolean isMaster()
public void setMaster(boolean master)
public String getClusterName()
public void setClusterName(String clusterName)
public void setTime(long time)
public long getTime()
public MemberStateImpl getMemberState()
public void setMemberState(MemberStateImpl memberState)
public boolean isSslEnabled()
public void setSslEnabled(boolean sslEnabled)
public boolean isLite()
public void setLite(boolean lite)
public boolean isSocketInterceptorEnabled()
public void setSocketInterceptorEnabled(boolean socketInterceptorEnabled)
public boolean isScriptingEnabled()
public void setScriptingEnabled(boolean scriptingEnabled)
public TimedMemberState clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public JsonObject toJson()
JsonSerializable
JsonObject
.toJson
in interface JsonSerializable
public void fromJson(JsonObject json)
JsonSerializable
json
object and mutates the
state of this object.fromJson
in interface JsonSerializable
json
- the JSON object carrying state for this objectCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.