public final class EventBinder.ExchangeBinding<T>
extends java.lang.Object
Configures and stores the binding between an event class and an exchange.
| Modifier and Type | Method and Description |
|---|---|
EventBinder.ExchangeBinding<T> |
withEncoder(Encoder<T> messageEncoder)
Sets the message encoder to be used for message encoding.
|
EventBinder.ExchangeBinding<T> |
withProperties(com.rabbitmq.client.AMQP.BasicProperties properties)
Sets the given basic properties to be used for message publishing.
|
EventBinder.ExchangeBinding<T> |
withRoutingKey(java.lang.String key)
Sets the routing key to be used for message publishing.
|
public EventBinder.ExchangeBinding<T> withRoutingKey(java.lang.String key)
Sets the routing key to be used for message publishing.
key - The routing keypublic EventBinder.ExchangeBinding<T> withEncoder(Encoder<T> messageEncoder)
Sets the message encoder to be used for message encoding.
messageEncoder - The message encoder instancepublic EventBinder.ExchangeBinding<T> withProperties(com.rabbitmq.client.AMQP.BasicProperties properties)
Sets the given basic properties to be used for message publishing.
properties - The basic properties