public class LocalTopicStatsImpl extends Object implements LocalTopicStats
STAT_NOT_AVAILABLE| Constructor and Description |
|---|
LocalTopicStatsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
fromJson(JsonObject json)
Extracts the state from the given
json object and mutates the
state of this object. |
long |
getCreationTime()
Returns the creation time of this topic on this member
|
long |
getPublishOperationCount()
Returns the total number of published messages of this topic on this member
|
long |
getReceiveOperationCount()
Returns the total number of received messages of this topic on this member
|
void |
incrementPublishes()
Increment the number of locally published messages.
|
void |
incrementReceives()
Increment the number of locally received messages.
|
JsonObject |
toJson()
Serializes state represented by this object into a
JsonObject. |
String |
toString() |
public long getCreationTime()
LocalTopicStatsgetCreationTime in interface LocalInstanceStatsgetCreationTime in interface LocalTopicStatspublic long getPublishOperationCount()
LocalTopicStatsgetPublishOperationCount in interface LocalTopicStatspublic void incrementPublishes()
TopicService,
ReliableTopicServicepublic long getReceiveOperationCount()
LocalTopicStatsgetReceiveOperationCount in interface LocalTopicStatspublic void incrementReceives()
TopicService,
ReliableMessageRunnerpublic JsonObject toJson()
JsonSerializableJsonObject.toJson in interface JsonSerializablepublic void fromJson(JsonObject json)
JsonSerializablejson object and mutates the
state of this object.fromJson in interface JsonSerializablejson - the JSON object carrying state for this objectCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.