Interface ConsumerTagStrategy

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ConsumerTagStrategy
    A strategy interface to determine the consumer tag to be used when issuing a basicConsume operation.
    Since:
    1.4.5
    Author:
    Gary Russell
    • Method Detail

      • createConsumerTag

        String createConsumerTag​(String queue)
        Create the consumer tag, optionally based on the queue name that the consumer will listen to. Consumer tags must be unique.
        Parameters:
        queue - The queue name that this consumer will listen to.
        Returns:
        The consumer tag.