public static IPersistentMap mapFrom(AMQP.Queue.DeclareOk method) { Map m = new HashMap(); m.put(RT.keyword(null, "queue"), method.getQueue()); m.put(RT.keyword(null, "message-count"), method.getMessageCount()); m.put(RT.keyword(null, "consumer-count"), method.getConsumerCount()); m.put(RT.keyword(null, "message_count"), method.getMessageCount()); m.put(RT.keyword(null, "consumer_count"), method.getConsumerCount()); return PersistentHashMap.create(m); }
public int getConsumerCount() { return method.getConsumerCount(); }