Examples of MessageKeyGenerator


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
Copyright © 2018 www.massapi.com. 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.