Refine Topic creation for ChannelTopic and PatternTopic.

Signed-off-by: jonghoonpark <dev@jonghoonpark.com>

Closes #3131
This commit is contained in:
jonghoonpark
2025-04-16 14:39:40 +09:00
committed by Mark Paluch
parent 42c5a5452b
commit 0de3af0ac5

View File

@@ -162,7 +162,7 @@ XML::
----
======
NOTE: The listener topic can be either a channel (for example, `topic="chatroom"`) or a pattern (for example, `topic="*room"`)
NOTE: The listener topic can be either a channel (for example, `topic="chatroom"`) or a pattern (for example, `topic="*room"`). For channels, you should use the `ChannelTopic` class, and for patterns, use the `PatternTopic` class.
The preceding example uses the Redis namespace to declare the message listener container and automatically register the POJOs as listeners. The full-blown beans definition follows: