public static final class EventBinder.ExchangeBinding<T>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
EventBinder.ExchangeBinding<T> |
inPhase(javax.enterprise.event.TransactionPhase phase)
Sets the event observation phase to the given transaction phase on which the event will be
published to the configured exchange.
|
java.lang.String |
toString() |
EventBinder.ExchangeBinding<T> |
withEncoder(Encoder<T> messageEncoder)
Sets the message encoder to be used for message encoding.
|
EventBinder.ExchangeBinding<T> |
withErrorHandler(java.util.function.BiConsumer<T,PublishException> handler)
Sets the given error handler to be used when a event could not be published to RabbitMQ.
|
EventBinder.ExchangeBinding<T> |
withHeader(java.lang.String header,
java.lang.Object headerValue)
Sets the message header to the given headerValue to be added when sending each message.
|
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)
key - The routing keypublic EventBinder.ExchangeBinding<T> withEncoder(Encoder<T> messageEncoder)
messageEncoder - The message encoder instancepublic EventBinder.ExchangeBinding<T> withHeader(java.lang.String header, java.lang.Object headerValue)
header - the header typeheaderValue - the header valuepublic EventBinder.ExchangeBinding<T> withProperties(com.rabbitmq.client.AMQP.BasicProperties properties)
properties - The basic propertieswithHeader(String, Object)public EventBinder.ExchangeBinding<T> inPhase(javax.enterprise.event.TransactionPhase phase)
phase - The transaction phase for the event to publishpublic EventBinder.ExchangeBinding<T> withErrorHandler(java.util.function.BiConsumer<T,PublishException> handler)
handler - The custom error handlerpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object