Package com.rabbitmq.client.amqp
Interface ConnectionSettings.AffinityStrategy
- Enclosing interface:
ConnectionSettings<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy to pick candidate nodes with an affinity with a queue.
-
Method Summary
Modifier and TypeMethodDescriptionPick affinity.
-
Method Details
-
nodesWithAffinity
List<String> nodesWithAffinity(ConnectionSettings.AffinityContext context, Management.QueueInfo info) Pick affinity.- Parameters:
context
- the affinity requirementsinfo
- information about the target queue- Returns:
- the candidate nodes
-