public class RabbitMessageCloseable extends Object implements 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(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 AutoCloseable
io.micronaut.messaging.exceptions.MessageAcknowledgementException
public RabbitMessageCloseable withAcknowledge(@Nullable Boolean acknowledge)
acknowledge
- The acknowledge parameter.