Package org.springframework.amqp.rabbit.retry

Examples of org.springframework.amqp.rabbit.retry.MessageKeyGenerator


  @Test
  public void testWithCustomKeyGenerator() throws Exception {
    final CountDownLatch latch = new CountDownLatch(1);
    StatefulRetryOperationsInterceptor interceptor = RetryInterceptorBuilder.stateful()
        .messageKeyGenerator(new MessageKeyGenerator() {

            @Override
            public Object getKey(Message message) {
              latch.countDown();
              return "foo";
View Full Code Here

TOP

Related Classes of org.springframework.amqp.rabbit.retry.MessageKeyGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.