public class LocalWanPublisherStatsImpl extends Object implements LocalWanPublisherStats
| Constructor and Description |
|---|
LocalWanPublisherStatsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
fromJson(com.eclipsesource.json.JsonObject json) |
int |
getOutboundQueueSize()
Returns the outbound queue size on this member
|
long |
getTotalPublishedEventCount()
Returns the total number of published events from this member
|
long |
getTotalPublishLatency()
Returns the total latency of published wan events from this member by millisecond.
|
void |
incrementPublishedEventCount(long latency) |
boolean |
isConnected()
Returns if this member is connected to the Wan publisher
|
boolean |
isPaused()
Returns if the wan replication on this member is paused
|
void |
setConnected(boolean connected) |
void |
setOutboundQueueSize(int outboundQueueSize) |
void |
setPaused(boolean paused) |
com.eclipsesource.json.JsonObject |
toJson() |
String |
toString() |
public boolean isConnected()
LocalWanPublisherStatsisConnected in interface LocalWanPublisherStatspublic void setConnected(boolean connected)
public int getOutboundQueueSize()
LocalWanPublisherStatsgetOutboundQueueSize in interface LocalWanPublisherStatspublic void setOutboundQueueSize(int outboundQueueSize)
public boolean isPaused()
LocalWanPublisherStatsisPaused in interface LocalWanPublisherStatspublic void setPaused(boolean paused)
public long getTotalPublishLatency()
LocalWanPublisherStatsgetTotalPublishLatency in interface LocalWanPublisherStatspublic long getTotalPublishedEventCount()
LocalWanPublisherStatsgetTotalPublishedEventCount in interface LocalWanPublisherStatspublic void incrementPublishedEventCount(long latency)
public com.eclipsesource.json.JsonObject toJson()
toJson in interface JsonSerializablepublic void fromJson(com.eclipsesource.json.JsonObject json)
fromJson in interface JsonSerializableCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.