Helius
2021-05-21 6a444ef0fc68be9e2d0e41886355ffb0899a8282
src/main/java/com/xcong/excoin/rabbit/producer/OtcProducter.java
@@ -9,6 +9,8 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.Date;
@Slf4j
@Component
public class OtcProducter implements RabbitTemplate.ConfirmCallback {
@@ -28,6 +30,12 @@
        rabbitTemplate.convertAndSend(RabbitMqConfig.EXCHANGE_ONE, RabbitMqConfig.ROUTINGKEY_MARKET_BUSSINESS, content, correlationData);
    }
    public void sendDelayOrderMsg(String content) {
        log.info("-----{}", new Date());
        CorrelationData correlationData = new CorrelationData(IdUtil.simpleUUID());
        rabbitTemplate.convertAndSend(RabbitMqConfig.EXCHANGE_DELAY, RabbitMqConfig.ROUTING_KEY_DELAY, content,correlationData );
    }
    @Override
    public void confirm(CorrelationData correlationData, boolean b, String s) {