public final class EventBinder.QueueBinding<T>
extends java.lang.Object
Configures and stores the binding between and event class and a queue.
| Modifier and Type | Method and Description |
|---|---|
EventBinder.QueueBinding<T> |
autoAck()
<p>
Sets the acknowledgement mode to be used for consuming message to automatic acknowledges
(auto acks).
|
EventBinder.QueueBinding<T> |
withDecoder(Decoder<T> messageDecoder)
Sets the message decoder to be used for message decoding.
|
public EventBinder.QueueBinding<T> autoAck()
<p> Sets the acknowledgement mode to be used for consuming message to automatic acknowledges (auto acks). </p>
<p> If auto acks is enabled, messages are delivered by the broker to its consumers in a fire-and-forget manner. The broker removes a message from the queue as soon as its is delivered to the consumer and does not care about whether the consumer successfully processes this message or not. </p>
public EventBinder.QueueBinding<T> withDecoder(Decoder<T> messageDecoder)
Sets the message decoder to be used for message decoding.
messageDecoder - The message decoder instance