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
Nested ClassesModifier and TypeClassDescriptionstatic final classCounters for WAN events for a single map or cache. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a map from distributed object name toWanEventCounters.DistributedObjectWanEventCounters.voidincrementDropped(String distributedObjectName) Increment the number of dropped events for thedistributedObjectName.voidincrementRemove(String distributedObjectName) Increment the number of remove events for thedistributedObjectName.voidincrementSync(String distributedObjectName) Increment the number of sync events for thedistributedObjectName.voidincrementSync(String distributedObjectName, int count) Increment the number of sync events for thedistributedObjectNamebycount.voidincrementUpdate(String distributedObjectName) Increment the number of update events for thedistributedObjectName.voidremoveCounter(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 thedistributedObjectNamebycount. -
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.
-