close()from your connection object.
>) the same message will be sent to the client multiple times.
ack()to positively acknowledge the reception and processing of the message
term()to indicate that the message could not be and will never be able to be processed and should not be sent again later. Use term when the request is invalid.
nack()to negatively acknowledge the processing of the message, indicating that the message should be sent again. Use nack when the request is valid but you are unable to process it. If this inability to process happens because of a temporary condition, you should also close your subscription temporarily until you are able to process again.
inProgress()to indicate that the processing of the message is still on-going and more time is needed (before the message is considered for being sent again)