DATAKV-68
+ merge channel and pattern into topic in the listener namespace
This commit is contained in:
@@ -155,7 +155,7 @@ template.convertAndSend("hello!", "world");]]></programlisting>
|
||||
<!-- the default ConnectionFactory -->
|
||||
<redis:listener-container>
|
||||
<!-- the method attribute can be skipped as the default method name is "handleMessage" -->
|
||||
<redis:listener ref="listener" method="handleMessage" channel="chatroom" />
|
||||
<redis:listener ref="listener" method="handleMessage" topic="chatroom" />
|
||||
</redis:listener-container>
|
||||
|
||||
<bean class="redisexample.DefaultMessageDelegate"/>
|
||||
@@ -177,7 +177,7 @@ template.convertAndSend("hello!", "world");]]></programlisting>
|
||||
<bean id="redisContainer" class="org.springframework.data.keyvalue.redis.listener.RedisMessageListenerContainer">
|
||||
<property name="connectionFactory" ref="connectionFactory"/>
|
||||
<property name="messageListeners">
|
||||
<lineannotation><!-- map of listeners and their associated topics (channels or topics) --></lineannotation>
|
||||
<lineannotation><!-- map of listeners and their associated topics (channels or/and patterns) --></lineannotation>
|
||||
<map>
|
||||
<emphasis role="bold"><entry key-ref="messageListener"></emphasis>
|
||||
<bean class="org.springframework.data.keyvalue.redis.listener.ChannelTopic">
|
||||
|
||||
Reference in New Issue
Block a user