Package io.atleon.rabbitmq
Class QueueBinding.QueueAndExchangeToBind
- java.lang.Object
-
- io.atleon.rabbitmq.QueueBinding.QueueAndExchangeToBind
-
- Enclosing class:
- QueueBinding
public static final class QueueBinding.QueueAndExchangeToBind extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueueBindingusingEmptyRoutingKey()Creates aQueueBindingfor thisQueueBinding.QueueAndExchangeToBind's queue and exchange through an empty routing key.QueueBindingusingRoutingKey(String routingKey)Creates aQueueBindingfor thisQueueBinding.QueueAndExchangeToBind's queue and exchange through the provided routing key.
-
-
-
Method Detail
-
usingRoutingKey
public QueueBinding usingRoutingKey(String routingKey)
Creates aQueueBindingfor thisQueueBinding.QueueAndExchangeToBind's queue and exchange through the provided routing key. This is useful for bindings on DIRECT and TOPIC exchanges.- Parameters:
routingKey- Key through which contained queue and exchange will be bound by- Returns:
- A
QueueBinding
-
usingEmptyRoutingKey
public QueueBinding usingEmptyRoutingKey()
Creates aQueueBindingfor thisQueueBinding.QueueAndExchangeToBind's queue and exchange through an empty routing key. This is useful for bindings on FANOUT and HEADERS exchanges.- Returns:
- A
QueueBinding
-
-