public class RabbitMessageCloseable
extends java.lang.Object
implements java.lang.AutoCloseable
Acknowledgement
argument.Constructor and Description |
---|
RabbitMessageCloseable(RabbitConsumerState consumerState,
boolean multiple,
boolean reQueue)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
RabbitMessageCloseable |
withAcknowledge(java.lang.Boolean acknowledge)
Builder style sets whether the message should be acknowledged.
|
public RabbitMessageCloseable(RabbitConsumerState consumerState, boolean multiple, boolean reQueue)
consumerState
- The message statemultiple
- Whether multiple messages should be responded toreQueue
- Whether rejections should cause the messages to be re-queuedpublic void close() throws io.micronaut.messaging.exceptions.MessageAcknowledgementException
close
in interface java.lang.AutoCloseable
io.micronaut.messaging.exceptions.MessageAcknowledgementException
public RabbitMessageCloseable withAcknowledge(@Nullable java.lang.Boolean acknowledge)
acknowledge
- The acknowledge parameter.