Package com.hazelcast.wan
Class WanEventCounters
java.lang.Object
com.hazelcast.wan.WanEventCounters
Counters for WAN events for a single distributed object type (map or
cache).
This class may contain counters for a single WAN publisher or multiple
WAN publishers, depending on its usage.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Counters for WAN events for a single map or cache. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a map from distributed object name toWanEventCounters.DistributedObjectWanEventCounters
.void
incrementDropped
(String distributedObjectName) Increment the number of dropped events for thedistributedObjectName
.void
incrementRemove
(String distributedObjectName) Increment the number of remove events for thedistributedObjectName
.void
incrementSync
(String distributedObjectName) Increment the number of sync events for thedistributedObjectName
.void
incrementSync
(String distributedObjectName, int count) Increment the number of sync events for thedistributedObjectName
bycount
.void
incrementUpdate
(String distributedObjectName) Increment the number of update events for thedistributedObjectName
.void
removeCounter
(String dataStructureName) Removes the counter for the givendataStructureName
.
-
Constructor Details
-
WanEventCounters
public WanEventCounters()
-
-
Method Details
-
incrementSync
Increment the number of sync events for thedistributedObjectName
. -
incrementSync
Increment the number of sync events for thedistributedObjectName
bycount
. -
incrementUpdate
Increment the number of update events for thedistributedObjectName
. -
incrementRemove
Increment the number of remove events for thedistributedObjectName
. -
incrementDropped
Increment the number of dropped events for thedistributedObjectName
. -
removeCounter
Removes the counter for the givendataStructureName
. -
getEventCounterMap
public ConcurrentMap<String,WanEventCounters.DistributedObjectWanEventCounters> getEventCounterMap()Returns a map from distributed object name toWanEventCounters.DistributedObjectWanEventCounters
.
-