Package com.hazelcast.wan
Class WanEventCounters
- java.lang.Object
-
- com.hazelcast.wan.WanEventCounters
-
public class WanEventCounters extends java.lang.Object
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 Classes Modifier and Type Class Description static class
WanEventCounters.DistributedObjectWanEventCounters
Counters for WAN events for a single map or cache.
-
Constructor Summary
Constructors Constructor Description WanEventCounters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.ConcurrentMap<java.lang.String,WanEventCounters.DistributedObjectWanEventCounters>
getEventCounterMap()
Returns a map from distributed object name toWanEventCounters.DistributedObjectWanEventCounters
.void
incrementDropped(java.lang.String distributedObjectName)
Increment the number of dropped events for thedistributedObjectName
.void
incrementRemove(java.lang.String distributedObjectName)
Increment the number of remove events for thedistributedObjectName
.void
incrementSync(java.lang.String distributedObjectName)
Increment the number of sync events for thedistributedObjectName
.void
incrementSync(java.lang.String distributedObjectName, int count)
Increment the number of sync events for thedistributedObjectName
bycount
.void
incrementUpdate(java.lang.String distributedObjectName)
Increment the number of update events for thedistributedObjectName
.void
removeCounter(java.lang.String dataStructureName)
Removes the counter for the givendataStructureName
.
-
-
-
Method Detail
-
incrementSync
public void incrementSync(java.lang.String distributedObjectName)
Increment the number of sync events for thedistributedObjectName
.
-
incrementSync
public void incrementSync(java.lang.String distributedObjectName, int count)
Increment the number of sync events for thedistributedObjectName
bycount
.
-
incrementUpdate
public void incrementUpdate(java.lang.String distributedObjectName)
Increment the number of update events for thedistributedObjectName
.
-
incrementRemove
public void incrementRemove(java.lang.String distributedObjectName)
Increment the number of remove events for thedistributedObjectName
.
-
incrementDropped
public void incrementDropped(java.lang.String distributedObjectName)
Increment the number of dropped events for thedistributedObjectName
.
-
removeCounter
public void removeCounter(java.lang.String dataStructureName)
Removes the counter for the givendataStructureName
.
-
getEventCounterMap
public java.util.concurrent.ConcurrentMap<java.lang.String,WanEventCounters.DistributedObjectWanEventCounters> getEventCounterMap()
Returns a map from distributed object name toWanEventCounters.DistributedObjectWanEventCounters
.
-
-