public static NamedQueueEvent getEventByOrdinal(int value) {
      switch (value) {
        case 0: {
          return SLOW_LOG;
        }
        case 1: {
          return BALANCE_DECISION;
        }
        case 2: {
          return BALANCE_REJECTION;
        }
        case 3: {
          return WAL_EVENT_TRACKER;
        }
        default: {
          throw new IllegalArgumentException(
            "NamedQueue event with ordinal " + value + " not defined");
        }
      }
    }
Base payload to be prepared by client to send various namedQueue events for in-memory ring buffer
storage in either HMaster or RegionServer. e.g slowLog responses
hbase-server/src/main/java/org/apache/hadoop/hbase/namequeues/NamedQueuePayload.java