@Component public class QueueRetryComponent extends Object
| Constructor and Description |
|---|
QueueRetryComponent(RabbitTemplateHandler rabbitTemplateHandler) |
| Modifier and Type | Method and Description |
|---|---|
int |
calculateTtl(Integer ttlRetry,
Integer qtdRetry,
Integer ttlMultiply) |
int |
countDeath(org.springframework.amqp.core.Message message) |
protected Map |
getXDeath(Map<String,Object> headers) |
void |
sendToDlq(org.springframework.amqp.core.Message message,
TunedRabbitProperties properties) |
void |
sendToRetry(org.springframework.amqp.core.Message message,
TunedRabbitProperties properties,
Integer qtdRetry) |
void |
sendToRetryOrDlq(org.springframework.amqp.core.Message message,
TunedRabbitProperties properties) |
@Autowired public QueueRetryComponent(RabbitTemplateHandler rabbitTemplateHandler)
public void sendToRetryOrDlq(org.springframework.amqp.core.Message message,
TunedRabbitProperties properties)
public void sendToRetry(org.springframework.amqp.core.Message message,
TunedRabbitProperties properties,
Integer qtdRetry)
public void sendToDlq(org.springframework.amqp.core.Message message,
TunedRabbitProperties properties)
public int countDeath(org.springframework.amqp.core.Message message)
Copyright © 2022 Tradeshift. All rights reserved.