@Service public class RedisReceiverService extends Object
| 构造器和说明 |
|---|
RedisReceiverService() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
subscribeChannel(org.springframework.data.redis.listener.adapter.MessageListenerAdapter listenerAdapter,
List<org.springframework.data.redis.listener.ChannelTopic> topics)
批量订阅-频道消息
|
boolean |
subscribePattern(org.springframework.data.redis.listener.adapter.MessageListenerAdapter listenerAdapter,
List<org.springframework.data.redis.listener.PatternTopic> topics)
批量订阅-模式消息
|
boolean |
unsubscribeChannel(org.springframework.data.redis.listener.adapter.MessageListenerAdapter listenerAdapter,
List<org.springframework.data.redis.listener.ChannelTopic> topics)
批量取消订阅-模式消息
|
boolean |
unsubscribePattern(org.springframework.data.redis.listener.adapter.MessageListenerAdapter listenerAdapter,
List<org.springframework.data.redis.listener.PatternTopic> topics)
批量取消订阅-模式消息
|
public boolean subscribeChannel(org.springframework.data.redis.listener.adapter.MessageListenerAdapter listenerAdapter,
List<org.springframework.data.redis.listener.ChannelTopic> topics)
topics - 频道public boolean subscribePattern(org.springframework.data.redis.listener.adapter.MessageListenerAdapter listenerAdapter,
List<org.springframework.data.redis.listener.PatternTopic> topics)
topics - 频道public boolean unsubscribeChannel(org.springframework.data.redis.listener.adapter.MessageListenerAdapter listenerAdapter,
List<org.springframework.data.redis.listener.ChannelTopic> topics)
topics - 模式public boolean unsubscribePattern(org.springframework.data.redis.listener.adapter.MessageListenerAdapter listenerAdapter,
List<org.springframework.data.redis.listener.PatternTopic> topics)
topics - 模式Copyright © 2024. All rights reserved.