Doc Polishing
- remove discussion about `@RabbitListeners`; pre java-8 is no longer supported.
This commit is contained in:
@@ -323,20 +323,16 @@ public abstract class AbstractRabbitAnnotationDrivenTests {
|
||||
@Component
|
||||
static class RabbitListenersBean {
|
||||
|
||||
@RabbitListeners({
|
||||
@RabbitListener(id = "first", queues = "myQueue"),
|
||||
@RabbitListener(id = "second", queues = "anotherQueue")
|
||||
})
|
||||
@RabbitListener(id = "first", queues = "myQueue")
|
||||
@RabbitListener(id = "second", queues = "anotherQueue")
|
||||
public void repeatableHandle(String msg) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Component
|
||||
@RabbitListeners({
|
||||
@RabbitListener(id = "third", queues = "class1"),
|
||||
@RabbitListener(id = "fourth", queues = "class2")
|
||||
})
|
||||
@RabbitListener(id = "third", queues = "class1")
|
||||
@RabbitListener(id = "fourth", queues = "class2")
|
||||
static class ClassLevelListenersBean {
|
||||
|
||||
@RabbitHandler
|
||||
|
||||
@@ -2851,7 +2851,6 @@ This means that the annotation can appear on the same annotated element (method
|
||||
In this case, a separate listener container is created for each annotation, each of which invokes the same listener
|
||||
`@Bean`.
|
||||
Repeatable annotations can be used with Java 8 or above.
|
||||
When using Java 7 or earlier, you can achieve the same effect by using the `@RabbitListeners` "`container`" annotation, with an array of `@RabbitListener` annotations.
|
||||
|
||||
====== Proxy `@RabbitListener` and Generics
|
||||
|
||||
|
||||
Reference in New Issue
Block a user