{project.groupId}:functional-template

This is rabbitTemplate wrapper to set callBack-method easily when you publish messages.

License

License

Categories

Categories

Spring Boot Container Microservices
GroupId

GroupId

jp.spring-boot-reference
ArtifactId

ArtifactId

functional-template
Last Version

Last Version

1.1
Release Date

Release Date

Type

Type

jar
Description

Description

{project.groupId}:functional-template
This is rabbitTemplate wrapper to set callBack-method easily when you publish messages.
Project URL

Project URL

https://github.com/wadakc/functional-template
Source Code Management

Source Code Management

https://github.com/kcwebapply/functional-template

Download functional-template

How to add to project

<!-- https://jarcasting.com/artifacts/jp.spring-boot-reference/functional-template/ -->
<dependency>
    <groupId>jp.spring-boot-reference</groupId>
    <artifactId>functional-template</artifactId>
    <version>1.1</version>
</dependency>
// https://jarcasting.com/artifacts/jp.spring-boot-reference/functional-template/
implementation 'jp.spring-boot-reference:functional-template:1.1'
// https://jarcasting.com/artifacts/jp.spring-boot-reference/functional-template/
implementation ("jp.spring-boot-reference:functional-template:1.1")
'jp.spring-boot-reference:functional-template:jar:1.1'
<dependency org="jp.spring-boot-reference" name="functional-template" rev="1.1">
  <artifact name="functional-template" type="jar" />
</dependency>
@Grapes(
@Grab(group='jp.spring-boot-reference', module='functional-template', version='1.1')
)
libraryDependencies += "jp.spring-boot-reference" % "functional-template" % "1.1"
[jp.spring-boot-reference/functional-template "1.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-amqp jar 2.1.0.RELEASE

test (1)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-test jar 2.1.0.RELEASE

Project Modules

There are no modules declared in this project.

functional-template

apache licensed Java Maven Central

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'

Versions

Version
1.1