Consumer Tags

您可以提供生成消费者标记的策略。默认情况下,代理生成消费者标记。以下列表显示 ConsumerTagStrategy 接口定义:

You can provide a strategy to generate consumer tags. By default, the consumer tag is generated by the broker. The following listing shows the ConsumerTagStrategy interface definition:

public interface ConsumerTagStrategy {

    String createConsumerTag(String queue);

}

提供队列以使其(可选地)应用于该标记。

The queue is made available so that it can (optionally) be used in the tag.