How to build a nonblocking Consumer when using AsyncRabbitTemplate with Request/Reply Pattern
问题 I'm new to rabbitmq and currently trying to implement a nonblocking producer with a nonblocking consumer. I've build some test producer where I played around with typereference: @Service public class Producer { @Autowired private AsyncRabbitTemplate asyncRabbitTemplate; public <T extends RequestEvent<S>, S> RabbitConverterFuture<S> asyncSendEventAndReceive(final T event) { return asyncRabbitTemplate.convertSendAndReceiveAsType(QueueConfig.EXCHANGE_NAME, event.getRoutingKey(), event, event