Skip to content

Commit 5ec07fe

Browse files
committed
2.5.0
1 parent eb3b1c3 commit 5ec07fe

File tree

5 files changed

+25
-7
lines changed

5 files changed

+25
-7
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# [Rqueue] New and Notable Changes
22

3+
## [2.5.0] - 8-Feb-2021
4+
5+
### Added
6+
7+
* Attach more than one message listeners to the same queue
8+
39
## [2.4.0] - 3-Feb-2021
410

511
### Added
@@ -184,3 +190,5 @@ Fixes:
184190
[2.3.0]: https://repo1.maven.org/maven2/com/github/sonus21/rqueue-core/2.3.0-RELEASE
185191

186192
[2.4.0]: https://repo1.maven.org/maven2/com/github/sonus21/rqueue-core/2.4.0-RELEASE
193+
194+
[2.5.0]: https://repo1.maven.org/maven2/com/github/sonus21/rqueue-core/2.5.0-RELEASE

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ services code is in Spring.
5353
* Add dependency
5454
* Gradle
5555
```groovy
56-
implementation 'com.github.sonus21:rqueue-spring-boot-starter:2.4.0-RELEASE'
56+
implementation 'com.github.sonus21:rqueue-spring-boot-starter:2.5.0-RELEASE'
5757
```
5858
* Maven
5959
```xml
6060
<dependency>
6161
<groupId>com.github.sonus21</groupId>
6262
<artifactId>rqueue-spring-boot-starter</artifactId>
63-
<version>2.4.0-RELEASE</version>
63+
<version>2.5.0-RELEASE</version>
6464
</dependency>
6565
```
6666
@@ -71,14 +71,14 @@ services code is in Spring.
7171
* Add Dependency
7272
* Gradle
7373
```groovy
74-
implementation 'com.github.sonus21:rqueue-spring:2.4.0-RELEASE'
74+
implementation 'com.github.sonus21:rqueue-spring:2.5.0-RELEASE'
7575
```
7676
* Maven
7777
```xml
7878
<dependency>
7979
<groupId>com.github.sonus21</groupId>
8080
<artifactId>rqueue-spring</artifactId>
81-
<version>2.4.0-RELEASE</version>
81+
<version>2.5.0-RELEASE</version>
8282
</dependency>
8383
```
8484

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ext {
6969

7070
subprojects {
7171
group = 'com.github.sonus21'
72-
version = '2.4.0-RELEASE'
72+
version = '2.5.0-RELEASE'
7373

7474
dependencies {
7575
// https://mvnrepository.com/artifact/org.springframework/spring-messaging

rqueue-core/src/main/java/com/github/sonus21/rqueue/annotation/RqueueHandler.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
import java.lang.annotation.RetentionPolicy;
2323
import java.lang.annotation.Target;
2424

25+
/**
26+
* This designated any public method as listener given the containing method is also annotated with
27+
* {@link RqueueListener}. In a class there must be exactly one primary one handler.
28+
*
29+
* <p>Registering more than one primary handler is not allowed.
30+
*/
2531
@Target({ElementType.METHOD})
2632
@Retention(RetentionPolicy.RUNTIME)
2733
@Documented

rqueue-core/src/main/java/com/github/sonus21/rqueue/annotation/RqueueListener.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@
2424
import java.lang.annotation.Target;
2525

2626
/**
27-
* Annotation for mapping a method onto message-handling methods by matching to the message queue.
27+
* Annotation for mapping a method/class onto message-handling methods by matching to the message
28+
* queue.
2829
*
2930
* <p>Any method can be marked as listener with this annotation, different field can be configured
3031
* in any order as per need.
3132
*
32-
* <p>All fields support SpEL(Spring Expression Language) as well property placeholder.
33+
* <p>When this is used on a class, listeners methods (public method) must be annotated by {@link
34+
* RqueueHandler}
35+
*
36+
* <p>All fields support SpEL(Spring Expression Language), property placeholder and constants value
3337
*
3438
* <pre>
3539
* &#64;Component

0 commit comments

Comments
 (0)