public class SimpleEventBusStatistics extends Object implements SimpleEventBusStatisticsMXBean
Statistics object to store information about the internal of the SimpleEventBus
.
You can request information about the registered listeners but also about the number of received events.
Next to requesting information it is also possible to reset the counters
Finally, the statistics are only gathered when explicitly enabled. By default they are switched off.
SimpleEventBus
Modifier and Type | Method and Description |
---|---|
long |
getListenerCount()
Returns the amount of registered listeners.
|
List<String> |
getListenerTypes()
Returns the list of names of the registered listeners.
|
long |
getReceivedEventsCount()
Returns the amount of received events, from the beginning or after the last reset.
|
void |
resetReceivedEventsCount()
Reset the amount of events that was received.
|
public long getListenerCount()
getListenerCount
in interface SimpleEventBusStatisticsMXBean
public long getReceivedEventsCount()
getReceivedEventsCount
in interface SimpleEventBusStatisticsMXBean
public void resetReceivedEventsCount()
resetReceivedEventsCount
in interface SimpleEventBusStatisticsMXBean
public List<String> getListenerTypes()
getListenerTypes
in interface SimpleEventBusStatisticsMXBean
Copyright © 2010-2014. All Rights Reserved.