Class DayCounterInfo
java.lang.Object
org.apache.activemq.artemis.api.core.management.DayCounterInfo
Helper class to create Java Objects from the JSON serialization returned by
QueueControl.listMessageCounterHistory()
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DayCounterInfo[]
Returns an array of RoleInfo corresponding to the JSON serialization returned byQueueControl.listMessageCounterHistory()
.long[]
Returns a 24-length array corresponding to the number of messages added to the queue for the given hour of the day.getDate()
static String
toJSON
(DayCounterInfo[] infos)
-
Constructor Details
-
DayCounterInfo
-
-
Method Details
-
toJSON
-
fromJSON
Returns an array of RoleInfo corresponding to the JSON serialization returned byQueueControl.listMessageCounterHistory()
.- Returns:
- an array of RoleInfo corresponding to the JSON serialization returned by
QueueControl.listMessageCounterHistory()
-
getDate
-
getCounters
public long[] getCounters()Returns a 24-length array corresponding to the number of messages added to the queue for the given hour of the day.- Returns:
- a 24-length array corresponding to the number of messages added to the queue for the given hour of the day
-