Class DayCounterInfo

java.lang.Object
org.apache.activemq.artemis.api.core.management.DayCounterInfo

public final class DayCounterInfo extends Object
Helper class to create Java Objects from the JSON serialization returned by QueueControl.listMessageCounterHistory().
  • Constructor Details

    • DayCounterInfo

      public DayCounterInfo(String date, long[] counters)
  • Method Details

    • toJSON

      public static String toJSON(DayCounterInfo[] infos)
    • fromJSON

      public static DayCounterInfo[] fromJSON(String jsonString)
      Returns an array of RoleInfo corresponding to the JSON serialization returned by QueueControl.listMessageCounterHistory().
      Returns:
      an array of RoleInfo corresponding to the JSON serialization returned by QueueControl.listMessageCounterHistory()
    • getDate

      public String 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