2016-11-20 13:34:50 +00:00
|
|
|
|
namespace Tapeti
|
|
|
|
|
{
|
2019-08-13 18:30:04 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Determines the response sent back after handling a message.
|
|
|
|
|
/// </summary>
|
2016-11-20 13:34:50 +00:00
|
|
|
|
public enum ConsumeResponse
|
|
|
|
|
{
|
2019-08-13 18:30:04 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Acknowledge the message and remove it from the queue
|
|
|
|
|
/// </summary>
|
2016-11-20 13:34:50 +00:00
|
|
|
|
Ack,
|
2019-08-13 18:30:04 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Negatively acknowledge the message and remove it from the queue, send to dead-letter queue if configured on the bus
|
|
|
|
|
/// </summary>
|
2016-11-20 13:34:50 +00:00
|
|
|
|
Nack,
|
2019-08-13 18:30:04 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Negatively acknowledge the message and put it back in the queue to try again later
|
|
|
|
|
/// </summary>
|
2016-11-20 13:34:50 +00:00
|
|
|
|
Requeue
|
|
|
|
|
}
|
|
|
|
|
}
|