Package org.springframework.amqp.support
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 ConsumerTagStrategyA strategy interface to determine the consumer tag to be used when issuing abasicConsumeoperation.- Since:
- 1.4.5
- Author:
- Gary Russell
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringcreateConsumerTag(java.lang.String queue)Create the consumer tag, optionally based on the queue name that the consumer will listen to.
-
-
-
Method Detail
-
createConsumerTag
java.lang.String createConsumerTag(java.lang.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.
-
-