Ejemplo n.º 1
0
  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);
  }
Ejemplo n.º 2
0
 public int getConsumerCount() {
   return method.getConsumerCount();
 }