title: How to public message with delay time rabbitmq implement in spring boot
body: <p>My case. I have queue container element with exactly time to deliver.
  I use rabbitmq implement by spring boot to support. Now i should send message to queue and after delay time queue will deliver message. Rabbitmq support rabbitmq-delayed-message-exchange plugin to schedule message. But i do not implement . What wrong in my code. (I enabled plugin delay)</p>
  
  <pre><code>@Bean
  DirectExchange directExchange() {
      Map&lt;String, Object&gt; args = new HashMap&lt;String, Object&gt;();
      args.put("x-delayed-type", "x-delayed-message");
      return new DirectExchange("my-exchange", true, false, args);
  }
  
  @Bean
  Binding binding(Queue queue, DirectExchange directExchange) {
      return BindingBuilder.bind(queue).to(directExchange).with(queueName);
  }
  </code></pre>
  
  <p>The Post Answer button should be used only for complete answers to the question.</p>