functional-template
https://search.maven.org/artifact/jp.spring-boot-reference/functional-template/1.1/jar https://oss.sonatype.org/content/repositories/releases/jp/spring-boot-reference/functional-template/
functiona-template is rabbitTemplate Wrapper that make it easy to set callBack-function on message Recognition.
Usage
You can use functionaTemplate
as you use RabbitTemplate . Set callbackMethod.
FunctionalTemplate functionalTemplate = new FunctionalTemplate();
// set property as you do on rabbitTemplate
functionalTemplate.setMessageConverter(jackson2JsonMessageConverter());
// set callback method on message-ack.
functionalTemplate.setACKMethod(human,human.getClass().getMethod("getName"));
// publish message
functionalTemplate.convertAndSend("messageQueue",human); // publish.
Dependency
Maven
<dependency>
<groupId>jp.spring-boot-reference</groupId>
<artifactId>functional-template</artifactId>
<version>1.1</version>
</dependency>
Gradle
compile 'jp.spring-boot-reference:functional-template:1.1'